/*
 * Entangle Budget — what a visitor sees: the list of proposals, the timeline of an edition, its categories, the notice of a
 * closed call for proposals, the page of an edition.
 *
 * 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-*, --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 --eb-* properties to restyle the whole thing at once:
 *
 *   --eb-gap     the air between items
 *   --eb-rule    the thin lines
 *   --eb-muted   the colour of secondary lines
 *   --eb-chip-bg / --eb-chip-ink   a label
 *   --eb-accent  the current phase, the links that look like buttons
 *   --eb-radius  the roundness of labels and cards
 *
 * Every grid has one column that may shrink to nothing (minmax(0, 1fr)): a long title or address never makes the page
 * wider than a phone. Pagination is plain links and the filters a form; their baseline is written with :where() (no specificity),
 * so a theme that styles pagination, selects and buttons styles them.
 */

.entangle-proposal__cost-items,
.entangle-proposals,
.entangle-phases,
.entangle-current-phase,
.entangle-categories,
.entangle-results,
.entangle-results-intro,
.entangle-budget-call,
.entangle-share,
.entangle-follow,
.entangle-page-links,
.entangle-about,
.entangle-editions,
.entangle-documents,
.entangle-ways,
.entangle-steps,
.entangle-deadline,
.entangle-panel,
.entangle-icon,
.entangle-proposal-around,
.entangle-edition-facts,
.entangle-results-chosen,
.entangle-news,
.entangle-edition-page,
.entangle-editions-page,
.entangle-section-head,
.entangle-title-row,
.entangle-contacts,
.entangle-proposal-final {
	/* Colour. */
	--eb-rule: var(--color-rule, color-mix(in srgb, currentColor 18%, transparent));
	--eb-muted: var(--color-ink-soft, color-mix(in srgb, currentColor 68%, transparent));
	--eb-chip-bg: var(--color-brand-soft, color-mix(in srgb, currentColor 9%, transparent));
	--eb-chip-ink: var(--color-ink, currentColor);
	--eb-accent: var(--color-brand, currentColor);
	/* The votes for and against: never the only sign (the column says it in words), a contrast of 4.5:1 on white. */
	--eb-vote-for: var(--color-success, #1a7f37);
	--eb-vote-against: var(--color-danger, #b42318);
	/* What an assessment said, as a colour (the owner, 28. 10.): it can be done, it can with reservations, it cannot.
	   The theme's own tones where it has them — it writes --color-status-running itself, outside its palette, for
	   exactly this reason — else one that holds AA on the pale tint of itself that the chip is drawn on. */
	--eb-tone: currentColor;
	--eb-tone-ok: var(--color-status-running, hsl(140, 60%, 28%));
	--eb-tone-caution: var(--color-status-caution, hsl(32, 90%, 27%));
	--eb-tone-stop: var(--color-status-stop, hsl(0, 62%, 38%));
	/* The box of the final assessment on the page of a proposal: as wide as the list of the assessments under it (the
	   lines between them: its 960 px at most), its words as long as theirs (the measure of the projects, less the
	   padding and the bar of the box), and its tint half of what its chip has. */
	--eb-final-width: 960px;
	--eb-final-text: calc(var(--ep-measure, 760px) - 2 * var(--eb-pad-card) - 4px);
	--eb-final-tint: 6%;
	/* The air between the row of a section's heading and its list: the band at the foot of a proposal's page has it. */
	--eb-section-head-after: var(--wp--preset--spacing--30, 1rem);
	--eb-final-after: var(--wp--preset--spacing--60, 2.5rem);

	/* Between the blocks of a layout: the theme's grid gap, which its own grids use. */
	--eb-gap: var(--grid-gap, var(--wp--preset--spacing--50, 1.5rem));
	/* Between the ROWS of the gallery a little more than between its columns (the owner, 31. 10.): the next row's
	   picture must not touch the title above it. The same as the grid of the projects (entangle-projects' --ep-row-gap);
	   a theme whose cards touch (grid gap 0) keeps them touching. */
	--eb-row-gap: calc(var(--eb-gap) * 5 / 3);
	/* Under the count of the list ("31 proposals") before its first row: as under the count of the projects. */
	--eb-status-after: 3rem;
	/* The gallery's filters, count and split are the projects' archive's, to the pixel (the owner, 31. 10.: "the
	   proposals are still not matched with the projects"): a field 48 px high with a firm line under it, 16 / 24 px
	   between fields, 16 px under the row, the count at 14 px, 32 px between the cards and the map. */
	/* A filter is a pill with its name inside (the owner, 23. 11.): 44 px high, round at both ends, close to the next. */
	--eb-filter-height: 44px;
	--eb-filter-gap: 8px;
	--eb-filter-radius: 22px;
	--eb-filter-radius-end: 0 22px 22px 0;
	--eb-filter-pad: 16px;
	--eb-filter-pad-end: 40px;
	--eb-filter-chevron: 7px;
	--eb-filter-chevron-inset: 17px;
	--eb-filter-after: 16px;
	--eb-filter-rule: var(--color-rule-solid, color-mix(in srgb, currentColor 30%, transparent));
	--eb-count-size: 14px;
	--eb-split-gap: 32px;
	/* Inside a component, in `em`: the air grows with the text it is around. */
	--eb-space-2xs: 0.25em;
	--eb-space-xs: 0.5em;
	--eb-space-sm: 0.75em;
	--eb-space-md: 1em;
	--eb-space-lg: 1.5em;
	/* The air around the introduction, from the page's own scale (fluid in this theme). */
	--eb-space-hero: var(--wp--preset--spacing--80, 4rem);
	--eb-space-hero-inline: var(--wp--preset--spacing--60, 2rem);
	--eb-space-hero-rule: var(--wp--preset--spacing--60, 2rem);

	/* Type. The theme's own steps first, then the ones WordPress gives every theme, then a number. */
	--eb-text-sm: var(--wp--preset--font-size--compact, var(--wp--preset--font-size--small, 0.875em));
	--eb-text-xs: var(--wp--preset--font-size--small, 0.8125em);
	/* The words of the small button beside a section's heading: the size the suite's lists write theirs in. */
	--eb-text-way: 0.9375rem;
	/* The sentence under the headline of the introduction. The reference writes it at 25 against a page of 19
	   (pr.entangle.cz, measured 27. 10.), and no step of this theme's scale is that size — 21 is too small and 27 too
	   big — so the ratio itself is the value, and it holds whatever size the page sets. */
	--eb-text-hero: calc(25em / 19);
	/* The heading steps of the theme are `h-5` … `h-2`: WordPress kebab-cases the slug of theme.json ("h2" becomes
	   `--wp--preset--font-size--h-2`), so a name without the hyphen is a name nothing declares. The head of the page
	   stands a step above the headings of its sections — that one is the theme's `section-title`. */
	--eb-title-xs: var(--wp--preset--font-size--h-5, var(--wp--preset--font-size--medium, 1.0625em));
	--eb-title-sm: var(--wp--preset--font-size--h-4, var(--wp--preset--font-size--medium, 1.125em));
	--eb-title-md: var(--wp--preset--font-size--h-3, var(--wp--preset--font-size--large, 1.5em));
	--eb-title-lg: var(--wp--preset--font-size--h-2, var(--wp--preset--font-size--x-large, 2em));
	--eb-title-hero: var(--wp--preset--font-size--section-title, var(--wp--preset--font-size--x-large, 2.5em));
	/* An arrow or a mark beside text, and a pictogram, which is sized by the page and not by its line. */
	--eb-glyph: 1.25em;
	--eb-icon: 2.5rem;
	--eb-leading-flat: 1;
	--eb-leading-tight: 1.2;
	--eb-leading-snug: 1.3;

	/* The longest line prose is read in, and the longest a title is read in. */
	--eb-measure: 68ch;
	--eb-measure-title: 24ch;

	/* A chip, a pill, a card: three paddings, not seven. */
	--eb-pad-chip: 0.125em 0.5em;
	--eb-pad-pill: 0.4em 1em;
	--eb-pad-card: var(--wp--preset--spacing--30, 1rem);
	/* What a finger has to reach, and the corners of the page. */
	--eb-target: var(--btn-target, 44px);
	/* The small button a section has beside its heading, and a card of an edition in its foot. */
	--eb-target-sm: 2.5rem;
	--eb-pad-way: 0.4em 1.125em;
	/* A button of a compact row (the links to share in the head of a page): still well above the 24 px WCAG asks for. */
	--eb-target-compact: 36px;
	/* The round photo of a person of the contacts (the owner, 31. 10.: always round, a card of the size of a business card). */
	--eb-avatar: 80px;
	/* A band under the introduction is a road, not a button: the reference gives it 100 px of its own (pr.entangle.cz,
	   measured 27. 10.) — far more than the 44 px a finger needs — and writes its label at 26.7 against a page of 19,
	   a step and a half above the text. The air above and below it is the page's step and not 1.5em of that label,
	   which would make the band taller than the 100 px it is meant to be. */
	--eb-band-min: 6.25rem;
	--eb-band-text: 1.4em;
	--eb-pad-band: var(--wp--preset--spacing--50, 1.5rem);
	--eb-radius: var(--radius, var(--wp--custom--radius, 0));
	--eb-radius-pill: var(--radius-pill, 999px);
	/* A control: a field, a small button (the theme's own where it has one). */
	--eb-radius-control: var(--radius-control, min(var(--eb-radius), 10px));
	--eb-page: var(--entangle-budget-width, 64rem);
	/* The width a BAND of cards keeps inside the page (the foot of a proposal's page): the container of the theme,
	   because a row of four cards needs the whole of it, not the narrower column that reading text keeps. */
	--eb-band-page: var(--container, var(--wp--custom--container, 75rem));
	/* The narrowest a card may be: four, three, two and one of them fit as the wrapper narrows. The second is the
	   width a card has in a row of FOUR, and it is what a row is built of (the owner, 28. 10.): a page that shows
	   three cards shows them that size and leaves the fourth place empty, instead of three cards grown to fill the
	   width — the same card has to look the same wherever it stands. Where four of them no longer fit, the floor
	   takes over and the row holds three, two, one. */
	--eb-card: 16.5rem;
	--eb-card-row: max(var(--eb-card), calc((100% - 3 * var(--eb-gap)) / 4));
	--eb-sticky-top: calc(var(--header-h, 0px) + var(--wp-admin--admin-bar--height, 0px) + 24px);
	/* The List / Map switch floats at the foot of a phone's window, as the projects' archive's does (the owner, 1. 11.):
	   a card of its own with a shadow, its chosen half in the accent; the list keeps room under its last card for it. */
	--eb-on-accent: var(--color-on-brand, var(--color-contrast, #fff));
	--eb-float-bg: var(--color-card, var(--color-bg, #fff));
	--eb-float-shadow: 0 8px 24px rgba(11, 29, 63, 0.22);
	--eb-float-room: 72px;
	/* The map on a phone: the window under the header, less the foot the switch floats in. */
	--eb-map-phone: calc(100svh - var(--header-h, 0px) - var(--wp-admin--admin-bar--height, 0px) - 96px);
	/* A band of a quiet background (the ways of submitting, the panel of the form): the air inside it is the air the
	   page puts between its sections, so the band breathes like the rest of the page and not like a card. */
	--eb-quiet: var(--color-bg-alt, color-mix(in srgb, currentColor 6%, transparent));
	/* The colour under the band at the foot of a page — the same quiet surface. */
	--eb-band-surface: var(--eb-quiet);
	/* The air of that band, above and below its content; the projects' band is drawn with the same two steps. */
	--eb-band-top: var(--wp--preset--spacing--70, 3rem);
	--eb-band-bottom: var(--wp--preset--spacing--80, 4rem);
	/* The foot of the page of a proposal: from the tabs to the way through the edition, and from that to the band.
	   The page of a project keeps the same two (projects.css, `.entangle-projects-nav`; the owner, 29. 10.). */
	--eb-foot-top: var(--wp--preset--spacing--80, 4rem);
	--eb-foot-band: var(--wp--preset--spacing--70, 3rem);
	--eb-pad-band-block: var(--wp--preset--spacing--70, 3rem);
	--eb-pad-band-inline: var(--wp--preset--spacing--60, 2rem);
	--eb-pad-box: var(--wp--preset--spacing--50, 1.5rem);
	box-sizing: border-box;
	min-width: 0;
}

/* ===== The signpost of the editions (the owner, 27. 10.) =====
   One card per year, built like the cards of the proposals and the projects — the same grid, the same frame — because
   a visitor who has just read those should not have to learn a new shape to find last year. */
.entangle-editions__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--eb-card)), 1fr));
	gap: var(--eb-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-editions__item {
	display: grid;
	margin: 0;
}
.entangle-edition {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--eb-space-xs);
	box-sizing: border-box;
	height: 100%;
	padding: var(--eb-pad-card);
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eb-rule);
	border-radius: var(--eb-radius);
	background: var(--color-card, transparent);
	overflow-wrap: break-word;
}
.entangle-edition__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-2xs) var(--eb-space-xs);
	margin: 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-xs);
}
.entangle-edition__chip {
	padding: var(--eb-pad-chip);
	border-radius: var(--eb-radius-pill);
	background: var(--eb-chip-bg);
	color: var(--eb-chip-ink);
}
.entangle-edition__title {
	margin: 0;
	font-size: var(--eb-title-sm);
	line-height: var(--eb-leading-snug);
}
.entangle-edition__title a {
	color: inherit;
}
/* The whole card leads to the page of the edition (the owner, 31. 10.): the link of the title is stretched over it,
   and the ring of that link is the card's — not the ring of a road of the card, which has its own. */
.entangle-edition__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.entangle-edition__title a:focus-visible {
	outline: none;
}
.entangle-edition:has(.entangle-edition__title a:focus-visible) {
	outline: 2px solid var(--eb-accent);
	outline-offset: 2px;
}
.entangle-edition__facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-space-2xs);
	margin: 0;
	font-size: var(--eb-text-sm);
}
.entangle-edition__fact {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--eb-space-2xs) var(--eb-space-xs);
}
.entangle-edition__fact dt {
	color: var(--eb-muted);
}
.entangle-edition__fact dd {
	margin: 0;
}
/* The foot of the card, whatever the facts above it say: the one thing to do with a card - open the overview of its
   year - is the primary button at the end of the row, and the two roads into that year (its proposals, its results) are
   the secondary ones before it (the owner, 23. 11.: the roads did not quite read as buttons, and the overview, the
   primary action, read as a mere link). All three the size of the small button a section has beside its heading. */
.entangle-edition__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-xs);
	margin: auto 0 0;
	padding-block-start: var(--eb-space-sm);
	border-block-start: 1px solid rgba(128, 128, 128, 0.3);
	border-block-start-color: var(--eb-rule);
	font-size: var(--eb-text-sm);
}
.entangle-edition__link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--eb-target-sm);
	padding: var(--eb-pad-way);
	border: 1px solid var(--eb-accent);
	border-radius: var(--eb-radius-control);
	color: var(--color-brand-deep, var(--eb-accent));
	font-size: var(--eb-text-way);
	font-weight: 600;
	line-height: var(--eb-leading-tight);
	text-decoration: none;
	white-space: nowrap;
}
.entangle-edition__link:hover,
.entangle-edition__link:focus-visible {
	background: var(--color-brand-soft, color-mix(in srgb, var(--eb-accent) 12%, transparent));
}
/* The primary button of the card. Words, not a link of their own: a click on them is a click on the card, and the
   card's own link answers the pointer for them. */
.entangle-edition__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--eb-space-xs);
	box-sizing: border-box;
	min-height: var(--eb-target-sm);
	margin-inline-start: auto;
	padding: var(--eb-pad-way);
	border: 1px solid var(--eb-accent);
	border-radius: var(--eb-radius-control);
	background: var(--eb-accent);
	color: var(--eb-on-accent);
	font-size: var(--eb-text-way);
	font-weight: 600;
	line-height: var(--eb-leading-tight);
	white-space: nowrap;
	pointer-events: none;
}
@media (hover: hover) {
	.entangle-edition:has(.entangle-edition__title a:hover) .entangle-edition__more {
		border-color: var(--color-brand-deep, var(--eb-accent));
		background: var(--color-brand-deep, var(--eb-accent));
	}
}
/* A narrow card cannot hold the three in a row: the primary one first, the whole width, and the two roads under it,
   sharing the row. */
@media (max-width: 37.4375rem) {
	.entangle-edition__more {
		order: -1;
		flex: 1 1 100%;
	}
	.entangle-edition__link {
		flex: 1 1 0;
	}
}
.entangle-edition__more::after {
	content: "\2192";
}
@media (prefers-reduced-motion: no-preference) {
	.entangle-edition__more::after {
		transition: transform 0.2s ease;
	}
	.entangle-edition:has(.entangle-edition__title a:hover) .entangle-edition__more::after {
		transform: translateX(3px);
	}
}

/* ===== The page of an edition and the archive (the templates) ===== */
.entangle-edition-page,
.entangle-editions-page {
	width: 100%;
	max-width: var(--eb-page);
	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));
	overflow-wrap: break-word;
}
.entangle-edition-page > * + * {
	margin-block-start: var(--eb-gap);
}
/* The page ends in ONE space, the one above the footer (its padding-block-end): the last section's own padding stood
   on top of it (13. 11.: 64px + the footer's 100). A band of its own colour keeps its padding — it is a surface.
   !important: the section's padding is written in its markup (a block's own style), and only this outranks it. */
.entangle-edition-page > :last-child:not(.entangle-band, .has-background),
.entangle-editions-page > :last-child:not(.entangle-band, .has-background) {
	padding-block-end: 0 !important;
	margin-block-end: 0;
}

/* ===== The list of proposals =====
   One card, one family: the card of a proposal is built like the card of a project (entangle-projects, the owner's model
   of 26. 10.) — a picture on top in the same 3:2, a body with its own air, the title under the quiet line that numbers
   it, and the facts at the FOOT of the card, parted by a hairline, wherever the title ends. Four of them fit a wide
   page and the row drops to three, two and one as the wrapper narrows (no breakpoint of its own: the grid counts). */
.entangle-proposals__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--eb-card-row)), 1fr));
	gap: var(--eb-row-gap) var(--eb-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-proposals__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
	margin: 0;
}
/* A card the band at the foot of a proposal holds back for "Show more" (the projects' more.js sets `hidden`): its own
   display above would show it all the same (found 29. 10.: the band showed every card it had). */
.entangle-proposals__item[hidden] {
	display: none;
}
.entangle-proposals__empty {
	margin: 0;
	color: var(--eb-muted);
}
/* Which year the list is of, when it is not the one the page is about. */
.entangle-proposals__edition {
	margin: 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
}
/* A card is a picture with words under it (the owner, 28. 10.), the same as the projects' card: no frame, no fill,
   the words at the picture's own edge. The padded box is a variant for a card on a colour of its own. */
.entangle-proposal {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	overflow-wrap: break-word;
}
.entangle-proposal--boxed {
	overflow: hidden;
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eb-rule);
	border-radius: var(--eb-radius);
	background: var(--color-card, transparent);
}
.entangle-proposal:focus-within {
	outline: 2px solid var(--eb-accent);
	outline-offset: 2px;
}
.entangle-proposal__image {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--eb-radius);
	background: var(--eb-chip-bg);
}
.entangle-proposal--boxed .entangle-proposal__image {
	border-radius: 0;
}
/* The picture answers the hover, and nothing else does. */
@media (prefers-reduced-motion: no-preference) {
	.entangle-proposal__image img {
		transition: transform 0.4s ease;
	}
	.entangle-proposal:hover .entangle-proposal__image img {
		transform: scale(1.04);
	}
}
.entangle-proposal__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* The drawn picture of a proposal that has none of its own (entangle-projects' own mark) fills the same box. */
.entangle-proposal__image .entangle-projects-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--eb-muted);
}
.entangle-proposal__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--eb-space-xs);
	padding: var(--eb-space-sm) 0 0;
}
.entangle-proposal--boxed .entangle-proposal__body {
	padding: var(--eb-pad-card);
}
/* The quiet line a card opens with (the projects' card is the model): the stage as a chip, the category in the small
   caps an area is set in, the number last. One line that wraps, never a column. */
.entangle-proposal__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-2xs) var(--eb-space-xs);
	margin: 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-xs);
}
.entangle-proposal__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: var(--eb-pad-chip);
	border-radius: var(--eb-radius-pill);
	background: var(--eb-chip-bg);
	color: var(--eb-chip-ink);
}
/* Where the proposal stands is one word (Card::status(), the owner, 31. 10.) with a dot in the colour of what it says:
   a row of cards is read at a glance, and the word is there for whoever does not read colour. */
.entangle-proposal__chip::before {
	content: "";
	flex: none;
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: var(--eb-tone);
}
.entangle-proposal__chip--ok {
	--eb-tone: var(--eb-tone-ok);
}
.entangle-proposal__chip--caution {
	--eb-tone: var(--eb-tone-caution);
}
.entangle-proposal__chip--stop {
	--eb-tone: var(--eb-tone-stop);
}
.entangle-proposal__chip--plain {
	--eb-tone: var(--eb-muted);
}
/* A stage a proposal is still going through (handed in, being assessed, on the ballot) is said in the accent, as the
   tag of the same stage is on the proposal's page; only what is over without a verdict stays grey. */
.entangle-proposal:is([data-stage="proposal.submitted"], [data-stage="proposal.assessment"], [data-stage="proposal.ballot"]) .entangle-proposal__chip--plain {
	--eb-tone: var(--color-brand-deep, var(--eb-accent));
}
/* Where the proposal stands is the one word that rides on the picture; the rest stays in the line under it. It is
   stuck to the picture's edges in its bottom START corner (the owner, 12. 11.) — right above the edition and the
   title it belongs to, so the three are read as one — as the tags of a project's card are, and in their colours: the
   hue of what it says for the words, a share of it in the ground — opaque, on the card's own surface, because over a
   photograph a tint is no background (the owner, 28. 10.).

   A theme may round its pictures as much as it likes (`--radius`): the tag is cut to the same curve — by a mask, which
   takes any radius (a `border-radius` larger than the tag is high would be scaled down, and the tag would stand out
   of the corner) — gives its words room for it, and ends in a corner of the theme's radius as far as a tag can carry
   one. It reaches one pixel past the picture on its two outer sides, and its curve is that pixel wider: two shapes
   cut to the very same curve let the darker one show through along it. */
.entangle-proposal__media {
	position: relative;
}
/* Above the stretched link of the title: words, not a target — a click on them is a click on the card. */
.entangle-proposal__tags {
	position: absolute;
	z-index: 1;
	bottom: -1px;
	left: -1px;
	display: flex;
	max-width: 100%;
	margin: 0;
	pointer-events: none;
}
.entangle-proposal:not(.entangle-proposal--boxed) .entangle-proposal__tags .entangle-proposal__chip {
	--tag-r: calc(var(--eb-radius) + 1px);
	-webkit-mask:
		linear-gradient(#000 0 0) right / calc(100% - var(--tag-r)) 100% no-repeat,
		linear-gradient(#000 0 0) top / 100% max(0px, calc(100% - var(--tag-r))) no-repeat,
		radial-gradient(circle at var(--tag-r) calc(100% - var(--tag-r)), #000 calc(var(--tag-r) - 0.5px), transparent var(--tag-r)) left / var(--tag-r) 100% no-repeat;
	mask:
		linear-gradient(#000 0 0) right / calc(100% - var(--tag-r)) 100% no-repeat,
		linear-gradient(#000 0 0) top / 100% max(0px, calc(100% - var(--tag-r))) no-repeat,
		radial-gradient(circle at var(--tag-r) calc(100% - var(--tag-r)), #000 calc(var(--tag-r) - 0.5px), transparent var(--tag-r)) left / var(--tag-r) 100% no-repeat;
}
/* In a padded box the picture is square, and the box clips what stands in it. */
.entangle-proposal--boxed .entangle-proposal__tags {
	bottom: 0;
	left: 0;
}
.entangle-proposal__tags .entangle-proposal__chip {
	padding: 6px 12px 7px;
	padding-left: max(13px, calc(var(--eb-radius) * 0.55 + 1px));
	border-radius: 0;
	border-top-right-radius: min(var(--eb-radius), 10px);
	background: var(--color-card, var(--color-bg, #fff));
	color: var(--eb-tone);
	font-size: var(--eb-text-xs);
	font-weight: 600;
	line-height: var(--eb-leading-snug);
}
@supports (background: color-mix(in srgb, red 10%, white)) {
	.entangle-proposal__tags .entangle-proposal__chip {
		background: color-mix(in srgb, var(--eb-tone) 14%, var(--color-card, var(--color-bg, #fff)));
	}
}
/* On the picture the colour of the tag says what the dot said. */
.entangle-proposal__tags .entangle-proposal__chip::before {
	content: none;
}
.entangle-proposal__category {
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.entangle-proposal__number {
	margin: 0;
	font-variant-numeric: tabular-nums;
}
/* The coordinator's final assessment at the head of the tab of the assessments (29. 10.): set apart from the
   assessments of the groups under it — as wide as the lines between them, its words as long as theirs, tinted by its
   verdict a little lighter than its chip, with a bar of that colour on its start side. Without a verdict, the accent. */
.entangle-proposal-final {
	--eb-tone: var(--eb-accent);
	box-sizing: border-box;
	max-width: var(--eb-final-width);
	margin: 0 0 var(--eb-final-after);
	padding: var(--eb-pad-card, 1.25em);
	border-inline-start: 4px solid var(--eb-tone);
	border-radius: var(--eb-radius);
	background: color-mix(in srgb, var(--eb-tone) var(--eb-final-tint), transparent);
}
.entangle-proposal-final--ok {
	--eb-tone: var(--eb-tone-ok);
}
.entangle-proposal-final--caution {
	--eb-tone: var(--eb-tone-caution);
}
.entangle-proposal-final--stop {
	--eb-tone: var(--eb-tone-stop);
}
.entangle-proposal-final__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-sm);
}
.entangle-proposal-final__title {
	margin: 0;
	font-size: var(--eb-title-sm);
}
.entangle-proposal-final__text {
	max-width: var(--eb-final-text);
	margin-block-start: var(--eb-space-sm);
}
.entangle-proposal-final__text > :first-child {
	margin-block-start: 0;
}
.entangle-proposal-final__text > :last-child {
	margin-block-end: 0;
}
/* Which edition the proposal belongs to: a page of proposals outlives the year it was written in. It is the one word
   of the line that is read (the owner, 12. 11.): the colour of the text and a heavier cut, a size above the line's. */
.entangle-proposal__edition {
	color: var(--color-ink, inherit);
	font-size: var(--eb-text-sm);
	font-weight: 600;
}
/* How many comments the proposal has, beside the edition and only where it has some: quiet, parted by a dot. */
.entangle-proposal__comments {
	display: inline-flex;
	align-items: center;
	gap: var(--eb-space-xs);
	font-size: var(--eb-text-sm);
}
.entangle-proposal__edition + .entangle-proposal__comments::before {
	content: "";
	flex: none;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
}
/* The title IS the card now that there is no lead under it. */
.entangle-proposal__title {
	margin: 0;
	font-size: var(--eb-title-md);
	line-height: var(--eb-leading-snug);
	text-wrap: balance;
}
.entangle-proposal__title a {
	color: inherit;
}
/* The whole card leads to the proposal; the link keeps its own ring (:focus-within above draws it). */
.entangle-proposal__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.entangle-proposal__title a:focus-visible {
	outline: none;
}
.entangle-proposal__facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-space-2xs);
	margin: auto 0 0;
	padding-block-start: var(--eb-space-sm);
	border-block-start: 1px solid rgba(128, 128, 128, 0.3);
	border-block-start-color: var(--eb-rule);
	font-size: var(--eb-text-sm);
}
/* A line, not a column of pairs: a card is 264 px wide at its narrowest, and a label column of its own would leave the
   value three words to a line. The projects' card says its facts the same way. */
.entangle-proposal__fact {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--eb-space-2xs) var(--eb-space-xs);
}
.entangle-proposal__fact dt {
	color: var(--eb-muted);
}
.entangle-proposal__fact dd {
	margin: 0;
}
/* ===== Filters: selects in a plain GET form, pages: plain links =====
   Each filter is a pill with its name inside and the choice after it - "Kategorie: Vše" (the owner, 23. 11.; the projects'
   archive the same): the name is the select's label. The baseline is written with :where() (no specificity): a theme that styles its
   selects and buttons styles these. Without a script the form has its "Show" button; with proposals-filter.js (`is-ajax` on the
   block) the button is out of sight while the mouse or the finger chooses, and comes back (`is-keyboard`) once the keyboard is used on
   a select, as in the projects' archive. */
.entangle-proposals__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-filter-gap);
	margin-block-end: var(--eb-filter-after);
}
/* The pills stand close together, as one control, each as wide as what it says. The chevron is drawn by the pill, so
   that it takes the colour of the state. */
.entangle-proposals__filter {
	position: relative;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	min-height: var(--eb-filter-height);
	border: 1px solid var(--eb-filter-rule);
	border-radius: var(--eb-filter-radius);
	background: var(--color-card, transparent);
	color: var(--eb-muted);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.entangle-proposals__filter:hover {
	border-color: var(--color-ink, currentColor);
}
.entangle-proposals__filter::after {
	content: "";
	position: absolute;
	right: var(--eb-filter-chevron-inset);
	top: 50%;
	width: var(--eb-filter-chevron);
	height: var(--eb-filter-chevron);
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.entangle-proposals__filter-label {
	padding-inline-start: var(--eb-filter-pad);
	color: var(--eb-muted);
	font-size: var(--eb-text-way);
	line-height: var(--eb-leading-snug);
	white-space: nowrap;
	cursor: pointer;
}
.entangle-proposals__filter-label::after {
	content: ":";
}
/* The choice: as wide as what is chosen (Chrome, Safari; elsewhere as the longest option), and the rest of the pill,
   so a press anywhere on it opens the list. */
:where(.entangle-proposals__filter-select) {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
	min-height: calc(var(--eb-filter-height) - 2px);
	margin: 0;
	padding: 0 var(--eb-filter-pad-end) 0 var(--eb-space-xs);
	border: 0;
	border-radius: var(--eb-filter-radius-end);
	appearance: none;
	background-color: transparent;
	color: var(--color-ink, inherit);
	font: inherit;
	font-size: var(--eb-text-way);
	font-weight: 600;
	line-height: var(--eb-leading-snug);
	text-overflow: ellipsis;
	field-sizing: content;
	cursor: pointer;
}
/* The one that is set shows what narrows the list: a rim of two pixels and its choice in the accent. */
.entangle-proposals__filter.is-set {
	border-color: var(--eb-accent);
	box-shadow: inset 0 0 0 1px var(--eb-accent);
	color: var(--eb-accent);
}
.entangle-proposals__filter.is-set .entangle-proposals__filter-select {
	color: var(--color-brand-deep, var(--eb-accent));
}
/* The keyboard's ring is the pill's; none while the mouse's list is open (the base theme's `is-select-open`). */
.entangle-proposals__filter-select:focus {
	outline: none;
}
.entangle-proposals__filter:has(.entangle-proposals__filter-select:focus-visible:not(.is-select-open)) {
	outline: 2px solid var(--eb-accent);
	outline-offset: 1px;
}
:where(.entangle-proposals__filter-reset:focus-visible) {
	outline: 2px solid var(--eb-accent);
	outline-offset: 2px;
}
.entangle-proposals__filter-actions {
	display: flex;
	align-items: center;
	gap: var(--eb-space-md);
	min-height: var(--eb-filter-height);
	margin-inline-start: var(--eb-space-xs);
}
:where(.entangle-proposals__filter-submit) {
	min-height: var(--eb-target);
	cursor: pointer;
}
.entangle-proposals.is-ajax .entangle-proposals__filter-submit {
	display: none;
}
.entangle-proposals.is-ajax .entangle-proposals__filters.is-keyboard .entangle-proposals__filter-submit {
	display: inline-flex;
	align-items: center;
}
:where(.entangle-proposals__filter-reset) {
	color: var(--eb-accent);
	font-size: var(--eb-text-sm);
	font-weight: 600;
}
.entangle-proposals__filter-reset[hidden] {
	display: none;
}
/* How many the choices found: read under the filters as the archive of projects reads it, and announced to a
   screen reader when the script changes the list without a page. */
.entangle-proposals__status {
	margin: 0 0 var(--eb-status-after);
	color: var(--eb-muted);
	font-size: var(--eb-count-size);
}
.entangle-proposals.is-loading .entangle-proposals__main {
	opacity: 0.55;
}

/* „Zobrazit vše“ pod hrstkou návrhů na úvodní stránce: dveře k celému seznamu.
   Stejně jako na předloze stojí pod výpisem, ne u nadpisu. */
.entangle-proposals__all {
	margin-block-start: var(--eb-space-lg);
}
.entangle-proposals__all-link {
	display: inline-flex;
	align-items: center;
	gap: var(--eb-space-xs);
	font-weight: 600;
}
.entangle-proposals__all-link::after {
	content: "\2192";
	content: "\2192" / "";
	font-size: var(--eb-glyph);
	line-height: var(--eb-leading-flat);
}
.entangle-proposals__all-link:dir(rtl)::after {
	content: "\2190";
	content: "\2190" / "";
}
:where(.entangle-proposals__pagination) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-xs) var(--eb-space-md);
	margin-block-start: var(--eb-gap);
}

/* ===== The cards beside a sticky map (F2d) =====
   The layout of the projects' archive: the cards on the left, the map on the right and in view while the cards scroll, from 1024 px
   up; under it the cards and the map are stacked, and (once proposals-view.js runs: `is-enhanced`) a List / Map switch shows one of
   the two. Without scripts the cards are followed by the map and the switch stays hidden. */
.entangle-proposals__viewtoggle {
	display: none;
	position: fixed;
	z-index: 30;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	overflow: hidden;
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eb-rule);
	border-radius: var(--eb-radius-pill);
	background: var(--eb-float-bg);
	box-shadow: var(--eb-float-shadow);
	transform: translateX(-50%);
}
.entangle-proposals.is-enhanced .entangle-proposals__viewtoggle {
	display: inline-flex;
}
.entangle-proposals__viewtoggle-btn {
	display: inline-flex;
	align-items: center;
	min-height: var(--eb-target);
	margin: 0;
	padding: 0 var(--eb-space-lg);
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.entangle-proposals__viewtoggle-btn.is-active {
	background: var(--eb-accent);
	color: var(--eb-on-accent);
}
.entangle-proposals__viewtoggle-btn:focus-visible {
	outline: 2px solid var(--eb-accent);
	outline-offset: -4px;
}
.entangle-proposals__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-split-gap);
}
.entangle-proposals__main {
	min-width: 0;
}
/* The column of the cards is narrower than the block; the cards in it are the same cards (--eb-card), two to a row. */
/* One panel at a time, from the first paint: where scripts run (`scripting: enabled`) the map is hidden under 1024 px until the switch
   asks for it, so that the map's script, which builds a map only where it is shown, fetches no tile for a panel nobody sees (it boots
   before this block's own script has run, so a class that script sets would be too late). Where they do not, the cards are followed
   by the map. */
@media (max-width: 1023px) and (scripting: enabled) {
	.entangle-proposals--switch:not(.is-map-view) .entangle-proposals__split > .entangle-proposals__map {
		display: none;
	}
	.entangle-proposals--switch.is-map-view .entangle-proposals__main {
		display: none;
	}
	/* The floating switch must not cover the last card or the button under it. */
	.entangle-proposals--switch.is-enhanced .entangle-proposals__split {
		padding-block-end: var(--eb-float-room);
	}
	/* The map fills the window under the header (the switch opens it there: proposals-view.js). */
	.entangle-proposals--has-map.entangle-proposals--switch .entangle-proposals__map .entangle-projects-map[data-entangle-projects-map]:not(.is-failed) {
		height: var(--eb-map-phone);
		min-height: 320px;
	}
}

/* The list goes on as it is read (proposals-load.js): three more pages by themselves, then the button. The numbered
   pages stay in the page for whoever has no script and are hidden once the cards come by themselves — said here,
   because the pagination of core is a flex box, and a `display` beats the attribute (12. 11.: both were shown). */
.entangle-proposals__pagination[hidden] {
	display: none;
}
.entangle-proposals__load {
	display: grid;
	justify-items: center;
	gap: var(--eb-space-sm);
	margin-block-start: var(--eb-gap);
}
.entangle-proposals__loading {
	display: none;
	margin: 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
}
.entangle-proposals.is-loading-more .entangle-proposals__loading {
	display: block;
}
.entangle-proposals__load-more[hidden] {
	display: none;
}
.entangle-proposals__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@media (min-width: 1024px) {
	.entangle-proposals.is-enhanced .entangle-proposals__viewtoggle {
		display: none;
	}
	.entangle-proposals--has-map .entangle-proposals__split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
		align-items: start;
	}
}

/* ===== The map of the list (platform v2 F2) =====
   The container is the projects' (`.entangle-projects-map`, drawn by their script and, with their stylesheet, their pin
   and popup); what is set here is only what a page without a projects archive lacks: the height Leaflet needs, and the
   few custom properties the pins, their discs and the popup read. The sentence under the map is plain text. */
.entangle-proposals__map {
	--ep-accent: var(--eb-accent);
	--ep-accent-deep: var(--eb-accent);
	--ep-on-accent: var(--eb-on-accent);
	--ep-ink: var(--color-ink, currentColor);
	--ep-muted: var(--eb-muted);
	--ep-surface: var(--eb-chip-bg);
	--ep-radius: var(--eb-radius);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-space-xs);
	margin-block-end: var(--eb-gap);
}
/* The height is the map's, not the container's. Without the script (or with a library that failed) the container holds a sentence
   and a link, and takes the room of those — the projects' own stylesheet gives every map a min-height, taken back here. The
   script adds `is-ready` when it draws; a browser that says scripting is on holds the height from the first paint (the page
   below does not jump when the map appears), and `is-failed` gives it up again (the editor's preview, which draws no map, has no data attribute and keeps the room of its sentence). */
.entangle-proposals__map .entangle-projects-map {
	min-height: 0;
}
.entangle-proposals__map .entangle-projects-map.is-ready {
	min-height: 20rem;
	height: 28rem;
	max-height: 70vh;
}
@media (scripting: enabled) {
	.entangle-proposals__map .entangle-projects-map[data-entangle-projects-map]:not(.is-failed) {
		min-height: 20rem;
		height: 28rem;
		max-height: 70vh;
	}
}
.entangle-proposals__map-note {
	margin: 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
}
/* A note on its own (no map to put it under: nothing to show, or the editor says why) keeps the air a map would. */
:where(.entangle-proposals > .entangle-proposals__map-note) {
	margin-block-end: var(--eb-gap);
}
/* Beside the cards the map has the room of the column, not a height of its own (the box is the sticky one, the map fills it and the
   sentence sits under it); stacked under 1024 px it is as tall as most of the screen, like the projects' archive's. Without the script
   (nothing draws a map: the container holds a sentence and a link) the box and the container take the room of those, as above. */
.entangle-proposals--has-map .entangle-proposals__split > .entangle-proposals__map {
	margin-block-end: 0;
}
.entangle-proposals--has-map .entangle-proposals__map .entangle-projects-map.is-ready {
	height: 70vh;
	min-height: 20rem;
	max-height: none;
}
@media (scripting: enabled) {
	.entangle-proposals--has-map .entangle-proposals__map .entangle-projects-map[data-entangle-projects-map]:not(.is-failed) {
		height: 70vh;
		min-height: 20rem;
		max-height: none;
	}
}
@media (min-width: 1024px) {
	.entangle-proposals--has-map .entangle-proposals__split > .entangle-proposals__map {
		position: sticky;
		top: var(--eb-sticky-top);
		grid-template-rows: minmax(0, 1fr) auto;
	}
	.entangle-proposals--has-map .entangle-proposals__map .entangle-projects-map.is-ready {
		height: 100%;
		min-height: 0;
	}
}
@media (min-width: 1024px) and (scripting: enabled) {
	.entangle-proposals--has-map .entangle-proposals__split > .entangle-proposals__map {
		height: calc(100vh - var(--eb-sticky-top) - 24px);
		min-height: 26rem;
	}
	.entangle-proposals--has-map .entangle-proposals__map .entangle-projects-map[data-entangle-projects-map]:not(.is-failed) {
		height: 100%;
		min-height: 0;
	}
}

/* ===== The timeline of an edition ===== */
.entangle-phases__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: entangle-phase;
}
.entangle-phases__phase {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-space-2xs);
	margin: 0;
	/* A phase is one line and its days: the list is read in one go, so each item takes a line's worth of air. */
	padding-block: var(--eb-space-xs);
	padding-inline-start: 2.25em;
	border-inline-start: 2px solid rgba(128, 128, 128, 0.3);
	border-inline-start-color: var(--eb-rule);
	counter-increment: entangle-phase;
}
.entangle-phases__phase::before {
	content: counter(entangle-phase);
	position: absolute;
	inset-inline-start: -0.875em;
	inset-block-start: var(--eb-space-xs);
	display: grid;
	place-items: center;
	width: 1.75em;
	height: 1.75em;
	border: 2px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eb-rule);
	border-radius: 50%;
	background: var(--color-bg, Canvas);
	font-size: var(--eb-text-sm);
	font-variant-numeric: tabular-nums;
}
.entangle-phases__phase--past {
	color: var(--eb-muted);
}
.entangle-phases__phase--current {
	border-inline-start-color: var(--eb-accent);
}
.entangle-phases__phase--current::before {
	border-color: var(--eb-accent);
	background: var(--eb-accent);
	color: var(--color-on-brand, Canvas);
}
.entangle-phases__dates,
.entangle-phases__now {
	margin: 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
}
.entangle-phases__now {
	color: var(--eb-accent);
	font-weight: 600;
}
.entangle-phases__label {
	margin: 0;
	font-size: var(--eb-title-xs);
}
/* Which phase is now, in the timeline (the owner, 27. 10.): the accent is on the NAME, where the eye already is, and
   the badge beside it goes — the line "Now" stays in the page for whoever does not see a colour (the rule of the
   hidden text below). Outside the timeline, in the plain introduction, the line is read as it was. */
.entangle-phases__phase--current .entangle-phases__label {
	color: var(--eb-accent);
}
.entangle-phases__text > :first-child {
	margin-block-start: 0;
}
.entangle-phases__text > :last-child {
	margin-block-end: 0;
}
.entangle-phases__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eb-space-xs);
	margin: var(--eb-space-xs) 0 0;
}

/* Fáze může mít dvě tlačítka (vlastník, 26. 10.): hlavní cestu a vedle ní tišší
   — pravidla vedle „Podat návrh“, výsledky vedle hlasování. Druhé si bere obrys
   místo plochy, aby se o pozornost nepralo; barvu i tvar dává pořád téma
   (wp-element-button), tohle jen obrátí plochu a text. */
.entangle-phases__button--secondary {
	background-color: transparent;
	color: var(--eb-accent, currentColor);
	box-shadow: inset 0 0 0 1px currentColor;
}

/*
 * The introduction of a page (entangle-budget/current-phase): the current phase alone. It is drawn by the same method as
 * the timeline's current item, so the parts keep the timeline's classes (--eb-* and all); the wrapper is its own.
 */
.entangle-current-phase {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-space-2xs);
	padding-inline-start: var(--eb-space-md);
	border-inline-start: 4px solid var(--eb-accent);
}
.entangle-current-phase .entangle-phases__label {
	font-size: var(--eb-title-md);
}

/*
 * The introduction as bands (layout "bands"): the name of the phase, one sentence with its term, its text, and under them
 * wide bands across the whole width of the block — the primary one (the button of the phase) and the second one (the list
 * of proposals, or what the city wrote). Only tokens of the theme (--color-*, --radius, --btn-target, --space-*) with fallbacks
 * to the colours of the page, no picture of its own: a band is a solid colour, and a theme that wants a picture behind it sets
 * --eb-band-image (a url()) on the block or above it. The arrow is drawn here (it carries no meaning of its own: the empty
 * alternative text after the slash keeps it from being read).
 */
.entangle-current-phase--bands {
	padding-inline-start: 0;
	border-inline-start: 0;
	gap: var(--eb-space-xs);
}

/*
 * Úvod přes fotku ročníku (vlastník, 26. 10.). Obrázek je <img> pod obsahem, ne
 * pozadí ve style atributu: tenhle balík inline styly nepíše a jen img nese
 * srcset, takže si telefon nestahuje fotku pro desktop.
 *
 * Text přes fotku je čitelný jen tehdy, když se o to někdo postará: fotka může
 * být světlá, tmavá i oboje. Proto závojek — tmavý přechod zdola — a text na
 * něm bíle. Nejde o vkus: na 4,5 : 1 se u textu přes obrázek jinak spolehnout
 * nedá a kontrast se počítá proti tomu, co je pod písmem, ne proti fotce jako
 * celku.
 */
.entangle-current-phase--cover {
	position: relative;
	display: grid;
	/* Text a pruhy sedí na spodní hraně, nad nimi fotka — jinak by se úvod
	   scvrkl na výšku svého textu a z fotky by zbyl proužek. */
	align-content: end;
	/* The whole introduction, the bands included: the reference is 450 px of picture and 100 px of bands at 1400 px
	   (measured 27. 10.). Below that width it follows the window, as it did. */
	min-height: clamp(18rem, 42vw, 34.5rem);
	padding: 0;
	overflow: hidden;
	border-radius: var(--eb-radius);
	isolation: isolate;
}
/* The frame of a picture that has another one for a narrow window: no box of its own, the img lies as it did. */
.entangle-current-phase__picture {
	display: contents;
}
.entangle-current-phase__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.entangle-current-phase--cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Dole 80 %, v pásmu, kde text opravdu leží, 62 %. I kdyby pod ním byla
	   bílá obloha, vyjde bílé písmo na 5,7 : 1 — AA tedy platí pro každou
	   fotku, ne jen pro tu, kterou zrovna někdo nahrál. */
	background: linear-gradient(to top, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 62%) 55%, rgb(0 0 0 / 25%) 100%);
}
.entangle-current-phase__inner {
	display: grid;
	gap: var(--eb-space-xs);
	/* Pruhy sedí na spodní hraně jako u Liberce, text nad nimi. */
	padding: var(--eb-space-hero) var(--eb-space-hero-inline) 0;
	color: #fff;
}
.entangle-current-phase--cover .entangle-phases__label,
.entangle-current-phase--cover .entangle-phases__text {
	color: #fff;
}
/* Pruhy jdou až ke krajům a navazují na sebe, ne aby se vznášely v mřížce; text pruhu začíná tam, kde text nad ním
   (vlastník, 27. 10.): odsazení pruhu je odsazení hlavičky, ne jeho vlastní. */
.entangle-current-phase--cover .entangle-phases__band {
	padding-inline: var(--eb-space-hero-inline);
}
.entangle-current-phase--cover .entangle-phases__bands {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 0;
	margin-block-start: var(--eb-space-hero-rule);
	margin-inline: calc(-1 * var(--eb-space-hero-inline));
}
.entangle-current-phase--cover .entangle-phases__band {
	border-radius: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.entangle-current-phase--cover .entangle-phases__band {
		transition: background-color 0.15s ease;
	}
}
.entangle-current-phase--bands .entangle-phases__label {
	max-width: var(--eb-measure-title);
	font-size: var(--eb-title-hero);
	line-height: var(--eb-leading-tight);
}
.entangle-current-phase--bands .entangle-phases__text {
	max-width: var(--eb-measure);
	font-size: var(--eb-text-hero);
}
.entangle-phases__bands {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-space-sm);
	margin-block-start: var(--eb-space-xs);
}
.entangle-phases__band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--eb-space-md);
	box-sizing: border-box;
	min-height: var(--eb-band-min);
	/* A band is a road, not a button in a row of them: it is given the air of one (the owner, 27. 10.). */
	padding: var(--eb-pad-band) var(--eb-space-lg);
	border-radius: var(--eb-radius);
	background-image: var(--eb-band-image, none);
	background-position: center;
	background-size: cover;
	font-size: var(--eb-band-text);
	/* The loud road is bold and the quiet one is not, as on the reference: the weight says which is which before the
	   colour does. */
	font-weight: 400;
	line-height: var(--eb-leading-tight);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.entangle-phases__band::after {
	content: "\2192";
	content: "\2192" / "";
	flex: none;
	font-size: var(--eb-glyph);
	line-height: var(--eb-leading-flat);
}
.entangle-phases__band:dir(rtl)::after {
	content: "\2190";
	content: "\2190" / "";
}
.entangle-phases__band:hover,
.entangle-phases__band:focus-visible {
	text-decoration: none;
}
.entangle-phases__band:focus-visible {
	outline: 3px solid var(--color-ink, CanvasText);
	outline-offset: 3px;
}
.entangle-phases__band--primary {
	background-color: var(--color-brand, LinkText);
	color: var(--color-on-brand, Canvas);
	font-weight: 700;
}
.entangle-phases__band--primary:hover,
.entangle-phases__band--primary:focus-visible {
	background-color: var(--color-brand-deep, var(--color-brand, LinkText));
	color: var(--color-on-brand, Canvas);
}
.entangle-phases__band--secondary {
	/* The quiet road is a light grey with grey writing (the reference, 27. 10.) — the light surface of the palette
	   (theme.json: "surface"), so a child theme that moves its greys moves this one with them; the same grey as the
	   feed of the news under it and the hover of their cards (the owner, 30. 10.: one grey). */
	background-color: var(--eb-quiet);
	color: var(--color-ink-soft, CanvasText);
}
.entangle-phases__band--secondary:hover,
.entangle-phases__band--secondary:focus-visible {
	background-color: color-mix(in srgb, var(--color-bg-alt, Canvas) 94%, var(--color-ink, CanvasText));
	color: var(--color-ink, CanvasText);
}
@media (prefers-reduced-motion: no-preference) {
	.entangle-phases__band {
		transition: background-color 0.15s ease;
	}
	.entangle-phases__band::after {
		transition: transform 0.15s ease;
	}
	.entangle-phases__band:hover::after,
	.entangle-phases__band:focus-visible::after {
		transform: translateX(0.25em);
	}
	.entangle-phases__band:dir(rtl):hover::after,
	.entangle-phases__band:dir(rtl):focus-visible::after {
		transform: translateX(-0.25em);
	}
}

/* ===== The categories ===== */
.entangle-categories__total {
	margin: 0 0 var(--eb-space-sm);
}
.entangle-categories__total-label {
	color: var(--eb-muted);
}
.entangle-categories__scroll {
	max-width: 100%;
	overflow-x: auto;
}
.entangle-categories__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--eb-text-sm);
}
.entangle-categories__table caption {
	margin-block-end: var(--eb-space-xs);
	text-align: start;
	font-weight: 600;
}
.entangle-categories__table th,
.entangle-categories__table td {
	padding: var(--eb-space-xs) var(--eb-space-sm) var(--eb-space-xs) 0;
	border-block-end: 1px solid rgba(128, 128, 128, 0.3);
	border-block-end-color: var(--eb-rule);
	text-align: start;
	vertical-align: top;
}

/* ===== The itemised budget of a proposal (the tab Costs) ===== */
/* Core's table block with our class: the rows of the budget under the estimated cost. A phone scrolls the table
   sideways inside its own frame rather than the page. */
.entangle-proposal__cost-items {
	max-width: 100%;
	margin-inline: 0;
	overflow-x: auto;
	font-variant-numeric: tabular-nums;
}
.entangle-proposal__cost-items table {
	width: 100%;
	min-width: 32em;
	border-collapse: collapse;
	font-size: var(--eb-text-sm);
}
.wp-block-table.entangle-proposal__cost-items th,
.wp-block-table.entangle-proposal__cost-items td {
	padding: var(--eb-space-xs) var(--eb-space-sm) var(--eb-space-xs) 0;
	border: 0;
	border-block-end: 1px solid rgba(128, 128, 128, 0.3);
	border-block-end-color: var(--eb-rule);
	text-align: start;
	vertical-align: top;
}
.wp-block-table.entangle-proposal__cost-items thead th {
	border-block-end-color: currentColor;
	font-weight: 600;
	vertical-align: bottom;
}
.wp-block-table.entangle-proposal__cost-items .has-text-align-right {
	padding-inline: var(--eb-space-sm) 0;
	text-align: end;
	white-space: nowrap;
}
.wp-block-table.entangle-proposal__cost-items thead,
.wp-block-table.entangle-proposal__cost-items tfoot {
	border: 0;
}
.wp-block-table.entangle-proposal__cost-items tfoot td {
	border-block-end: 0;
	font-weight: 600;
}

/* ===== The results of the vote (phase 5b) ===== */
/* The words above the table stand as far apart as the page's own paragraphs that follow them. */
.entangle-results-intro > p {
	margin-block: 0;
}
.entangle-results-intro > p + p {
	margin-block-start: var(--wp--style--block-gap, 1.5em);
}
.entangle-results__summary {
	margin: 0 0 var(--eb-space-sm);
	color: var(--eb-muted);
}
.entangle-results__filters,
.entangle-results > .entangle-pill {
	margin-block-end: var(--eb-gap);
}
.entangle-results__filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eb-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Links, not labels: a finger has to reach them (the mark of a result below keeps the chip's padding). */
:where(.entangle-results__filter-link) {
	display: inline-flex;
	align-items: center;
	min-height: var(--eb-target);
	padding: var(--eb-pad-pill);
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eb-rule);
	border-radius: var(--eb-radius-pill);
	color: inherit;
	text-decoration: none;
}
:where(.entangle-results__filter-link[aria-current="page"]) {
	border-color: var(--eb-accent);
	background: var(--eb-chip-bg);
	font-weight: 600;
}
.entangle-results__category + .entangle-results__category {
	margin-block-start: var(--eb-gap);
}
.entangle-results__title {
	margin: 0 0 var(--eb-space-2xs);
}
.entangle-results__budget {
	margin: 0 0 var(--eb-space-sm);
	color: var(--eb-muted);
}
/* The table measures the room IT has, not the window (a block may stand in a column): under the width its columns need,
   its rows are drawn as blocks (below), so nothing is scrolled sideways. The scroll stays for a browser without containers. */
.entangle-results__scroll {
	max-width: 100%;
	overflow-x: auto;
	container: entangle-results / inline-size;
}
.entangle-results__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--eb-text-sm);
}
/* The heading above says the same to the eye; a reader of the screen keeps the name of the table. */
.entangle-results__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.entangle-results__table th,
.entangle-results__table td {
	padding: var(--eb-space-xs) var(--eb-space-sm) var(--eb-space-xs) 0;
	border-block-end: 1px solid rgba(128, 128, 128, 0.3);
	border-block-end-color: var(--eb-rule);
	text-align: start;
	vertical-align: middle;
}
.entangle-results__table tr > :first-child {
	padding-inline-start: var(--eb-space-sm);
}
/* Every row as tall as the next (the owner, 2. 11.): room for two lines of a name, and a name never takes more (the whole of it
   is in its title, and in the text for a reader of the screen). */
.entangle-results__row {
	height: calc(2 * var(--eb-leading-snug) * 1em + 2 * var(--eb-space-xs));
}
.entangle-results__proposal {
	min-width: 16em;
	font-weight: 400;
}
.entangle-results__name {
	display: -webkit-box;
	overflow: hidden;
	line-height: var(--eb-leading-snug);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}
/* The small picture a row opens with (the owner, 23. 11.): as small as a picture still says something. */
.entangle-results__entry {
	display: flex;
	align-items: center;
	gap: var(--eb-space-sm);
}
.entangle-results__thumb {
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	overflow: hidden;
	border-radius: var(--eb-radius-control);
	background: var(--eb-quiet);
}
.entangle-results__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.entangle-results__thumb svg {
	width: 1.25rem;
	height: 1.25rem;
}
.entangle-results__number {
	color: var(--eb-muted);
	font-size: var(--eb-text-xs);
}
.entangle-results__rank,
.entangle-results__for,
.entangle-results__against,
.entangle-results__score,
.entangle-results__cost {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.entangle-results__for,
.entangle-results__against {
	font-weight: 600;
}
.entangle-results__for {
	color: var(--eb-vote-for);
}
.entangle-results__against {
	color: var(--eb-vote-against);
}
.entangle-results__mark,
.entangle-results__not {
	white-space: nowrap;
}
/* What became of a proposal is the tag its page and its card wear (the projects' chip, in the colour of the state: the owner,
   23. 11.) — Results\Block::mark() gives it the classes. The chip reads the projects' tokens, which that plugin sets on its
   own boxes only: here they are bridged to the same tokens of the theme, so a state has one colour across the site. */
.entangle-results__table {
	--ep-accent-deep: var(--color-brand-deep, var(--color-primary-deep, var(--eb-accent)));
	--ep-ink: var(--eb-chip-ink);
	--ep-muted: var(--color-ink-soft, var(--eb-muted));
	--ep-surface: var(--eb-quiet);
	--ep-state-running: var(--eb-tone-ok);
	--ep-state-done: var(--color-status-done, #525252);
	--ep-state-prep: var(--ep-accent-deep);
	--ep-state-backlog: var(--eb-tone-caution);
}
.entangle-results__row--chosen {
	background: color-mix(in srgb, var(--eb-accent) 6%, transparent);
}
.entangle-results__row--chosen .entangle-results__proposal {
	font-weight: 600;
}
/* The figure the order is made of stands out of the row (the owner, 2. 11.). */
.entangle-results__score {
	font-weight: 700;
}
/* The whole row is the link of its name (the owner, 2. 11.), as a row that leads to its record in a list of updates. A proposal
   nobody may read has no link and stays a plain row. Over the cells that are positioned themselves (the votes against). */
.entangle-results__row:has(.entangle-results__link) {
	position: relative;
}
.entangle-results__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.entangle-results__link:focus-visible {
	outline: none;
}
.entangle-results__row:has(.entangle-results__link:focus-visible) {
	outline: 2px solid var(--eb-accent);
	outline-offset: -2px;
}
@media (hover: hover) {
	.entangle-results__row:has(.entangle-results__link):hover {
		background: var(--color-bg-alt, rgba(128, 128, 128, 0.06));
	}
	.entangle-results__row--chosen:has(.entangle-results__link):hover {
		background: color-mix(in srgb, var(--eb-accent) 12%, transparent);
	}
	.entangle-results__row:hover .entangle-results__link {
		color: var(--eb-accent);
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

/* A narrow table (the owner, 23. 11.: nothing scrolled sideways): every row is a block of its own — the rank, the picture and
   the name; what became of the proposal; and the figures in a line, each under the word of its column (`data-label`; the
   head of the table is kept for a reader of the screen, out of sight). The roles in the markup keep it a table. */
@container entangle-results (max-width: 46rem) {
	.entangle-results__table,
	.entangle-results__table tbody {
		display: block;
	}
	.entangle-results__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.entangle-results__table .entangle-results__row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--eb-space-xs) var(--eb-space-sm);
		height: auto;
		padding: var(--eb-space-sm);
		border-block-end: 1px solid rgba(128, 128, 128, 0.3);
		border-block-end-color: var(--eb-rule);
	}
	.entangle-results__table .entangle-results__row > * {
		display: block;
		padding: 0;
		border: 0;
	}
	.entangle-results__table .entangle-results__proposal {
		flex: 1 1 0;
		min-width: 0;
	}
	.entangle-results__table .entangle-results__chosen {
		flex: 0 0 100%;
	}
	/* Shares of the line, not the width of what is written: a figure then stands under the same figure of the row above. */
	.entangle-results__table .entangle-results__row > [data-label] {
		display: flex;
		flex: 2 1 0;
		flex-direction: column;
		order: 1;
	}
	.entangle-results__table .entangle-results__row > .entangle-results__cost {
		flex-grow: 4;
	}
	.entangle-results__row > [data-label]::before {
		content: attr(data-label);
		color: var(--eb-muted);
		font-size: var(--eb-text-xs);
		font-weight: 400;
	}
	/* The share of the votes against stands beside its number, not under it. */
	.entangle-results__table .entangle-results__row > .entangle-results__against {
		display: block;
		flex-grow: 3;
	}
	.entangle-results__against::before {
		display: block;
	}
}

/* ===== What the rows of the results say besides the numbers (F2b, F2d) =====
   The votes against carry their share; the spoken form of the share is hidden from the eye and read by a screen reader. */
.entangle-results__rule {
	margin: 0 0 var(--eb-gap);
	color: var(--eb-muted);
}
.entangle-results__share {
	color: var(--eb-muted);
	font-size: var(--eb-text-xs);
	font-weight: 400;
}
.entangle-results__said {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.entangle-results__against {
	position: relative;
}

/* ===== A call for proposals that takes nothing now ===== */
/*
 * The button of the submission phase leads to the form of the edition (PhaseButton::button(): the page's address with the
 * anchor of the form). Where the call is closed, the anchor is the notice that stands in the form's place (Submission\Gate,
 * the same id): it stops below the sticky header too. The form itself does the same in Entangle Forms' own stylesheet.
 */
.entangle-budget-call {
	scroll-margin-top: calc(var(--header-h, 0px) + var(--wp-admin--admin-bar--height, 0px) + 24px);
}

.entangle-budget-call {
	padding: var(--eb-pad-card);
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eb-rule);
	border-radius: var(--eb-radius);
	background: var(--eb-chip-bg);
}
.entangle-budget-call__text,
.entangle-budget-call__more {
	margin: 0;
}
.entangle-budget-call__more {
	margin-block-start: var(--eb-space-xs);
}

/* A block's hint in the editor's preview. */
.entangle-budget-placeholder p {
	margin: 0;
	color: var(--eb-muted, inherit);
	font-style: italic;
}


/* ── the page of a proposal: the video (platform v2 C-II) ──────────────────
   The player of the provider (or, without an answer, a link) in the tab Popis; as wide as the text, never wider. */
.entangle-proposal__video {
	margin: var(--eb-gap, 1.5rem) 0;
}

.entangle-proposal__video .wp-block-embed__wrapper {
	max-width: 100%;
}

.entangle-proposal__video iframe {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

/* ── What the participatory budget is (Blocks\About) ─────────────────────
   The city's own text, written on the edition and drawn here: a column of prose, so it is read as prose — a line
   no longer than the eye follows back to the next one. */
.entangle-about__text {
	max-width: var(--eb-measure);
}
.entangle-about__text > :first-child {
	margin-block-start: 0;
}
.entangle-about__text > :last-child {
	margin-block-end: 0;
}

/* The way to all the editions and to the results, under the band of the previous editions (29. 10.). */
.entangle-editions__all {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eb-space-sm);
	margin: var(--eb-gap) 0 0;
}

/* ── Links to the pages of the budget, F2i (Frontend\PageLinks) ──────────
   The front page leads to the list of the proposals, to the form and to the results: a row of quiet pills of the page's own tokens,
   like the links to share. A page the site does not have is not in the row, so the row is as long as the pages are. */
.entangle-page-links {
	margin-block: var(--eb-gap);
}
.entangle-page-links__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-page-links__item {
	margin: 0;
}
.entangle-page-links__link {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: var(--eb-target);
	padding: var(--eb-pad-pill);
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eb-rule);
	border-radius: var(--eb-radius-pill);
	background: var(--color-card, transparent);
	color: var(--color-ink, inherit);
	font: inherit;
	font-weight: 600;
	line-height: var(--eb-leading-tight);
	text-decoration: none;
}
.entangle-page-links__link:hover,
.entangle-page-links__link:focus-visible {
	border-color: var(--eb-accent);
	text-decoration: none;
}
.entangle-page-links__link:focus-visible {
	outline: 3px solid var(--color-ink, CanvasText);
	outline-offset: 2px;
}

/* ── Documents of an edition, F2g (Blocks\EditionBlocks::documents) ──────────
   The rules, the form to download, the template of the budget: a plain list of links, the name first, the type and the size of the file
   after it in the quiet colour, the note under it. Nothing that is a card or a box: the page it stands on (the guide to submitting a proposal,
   a footer) gives it its place. */
/* ===== The page of submitting: the steps, the date beside the rules, the band of the ways (28. 10.) ===== */
/* The four steps as a strip of names, each behind a hairline — the reference site's own way of showing them. */
.entangle-steps__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: var(--eb-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: entangle-steps;
}
.entangle-steps__step {
	display: grid;
	align-content: start;
	gap: var(--eb-space-md);
	margin: 0;
	padding: var(--eb-space-sm) 0 var(--eb-space-sm) var(--eb-space-md);
	border-inline-start: 1px solid var(--eb-rule);
}
.entangle-steps__step .entangle-icon {
	inline-size: auto;
	block-size: auto;
	color: var(--eb-accent);
	font-size: var(--eb-icon);
}
.entangle-steps__title {
	margin: 0;
	font-size: var(--eb-title-sm);
	line-height: var(--eb-leading-snug);
}
.entangle-steps__link {
	color: inherit;
}

/* Until when proposals are taken: a quiet box that stays beside the rules while they are read. */
.entangle-deadline {
	display: grid;
	align-content: start;
	gap: var(--eb-space-md);
	padding: var(--eb-pad-box);
	background: var(--eb-quiet);
	border-radius: var(--eb-radius);
}
.entangle-deadline .entangle-icon {
	inline-size: auto;
	block-size: auto;
	color: var(--eb-accent);
	font-size: var(--eb-icon);
}
.entangle-deadline__title {
	margin: 0;
	font-size: var(--eb-title-sm);
	line-height: var(--eb-leading-snug);
}
.entangle-deadline__actions {
	margin: 0;
}
.entangle-deadline__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eb-space-sm);
	align-items: center;
	margin-block-start: var(--eb-space-xs);
}
/* The other ways, under the button (29. 10.): small print in a hairline-parted block — the name of the way, the
   city's words or the address under it, and the form they share once at the end. */
.entangle-deadline__other {
	display: grid;
	gap: var(--eb-space-xs);
	padding-block-start: var(--eb-space-sm);
	border-block-start: 1px solid var(--eb-rule);
	font-size: var(--eb-text-sm);
	line-height: var(--eb-leading-snug);
}
.entangle-deadline__other-title,
.entangle-deadline__download {
	margin: 0;
}
.entangle-deadline__other-title {
	color: var(--eb-muted);
}
.entangle-deadline__ways {
	display: grid;
	gap: var(--eb-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-deadline__way {
	display: grid;
	gap: var(--eb-space-2xs);
	margin: 0;
}
.entangle-deadline__way-name {
	font-weight: 600;
}
.entangle-deadline__way-note {
	overflow-wrap: anywhere;
}
.entangle-deadline__download-meta {
	color: var(--eb-muted);
}
@media (min-width: 48rem) {
	.wp-block-column > .entangle-deadline {
		position: sticky;
		top: var(--eb-sticky-top);
	}
}

/* A band of a quiet background: the ways of submitting, and the panel the form stands on. */
.entangle-panel,
.entangle-ways {
	padding: var(--eb-pad-band-block) var(--eb-pad-band-inline);
	background: var(--eb-quiet);
	border-radius: var(--eb-radius);
}
.entangle-panel > :first-child,
.entangle-ways__heading {
	margin-block-start: 0;
}
/* The box (`surface: box`, 29. 10.): the page's own surface with a line around it, as the box of the news from the
   proposals; its first heading is its head, a row of its own over a line across the whole box. */
.entangle-panel--box {
	border: 1px solid var(--eb-rule);
	background: var(--color-card, transparent);
}
.entangle-panel--box > :is(h2, h3, h4):first-child {
	margin: calc(-1 * var(--eb-pad-band-block)) calc(-1 * var(--eb-pad-band-inline)) var(--eb-pad-band-inline);
	/* Its words where the heading of the band beside it begins: the same air above, less below the line. */
	padding: var(--eb-pad-band-block) var(--eb-pad-band-inline) var(--eb-space-lg);
	border-block-end: 1px solid var(--eb-rule);
}
/* Two halves that touch (`half`): each as tall as the row, square corners, one line where the box meets the band. */
.entangle-panel--half {
	box-sizing: border-box;
	height: 100%;
	border-radius: 0;
}
.wp-block-column:has(> .entangle-panel--half) {
	display: flex;
	flex-direction: column;
}
.wp-block-column > .entangle-panel--half {
	flex: 1 1 auto;
}
/* On a phone the band keeps less of the width for itself: a form is read by its fields, not by its margins. */
@media (max-width: 47.99rem) {
	.entangle-panel,
	.entangle-ways {
		padding: var(--eb-pad-band-inline) var(--eb-pad-box);
	}
	.entangle-panel--box > :is(h2, h3, h4):first-child {
		margin: calc(-1 * var(--eb-pad-band-inline)) calc(-1 * var(--eb-pad-box)) var(--eb-pad-box);
		padding: var(--eb-space-md) var(--eb-pad-box);
	}
}
.entangle-ways__heading {
	margin-block-end: var(--eb-gap);
	font-size: var(--eb-title-md);
	line-height: var(--eb-leading-snug);
}

/* ===== The ways of submitting a proposal (the owner, 28. 10.: each city offers its own set) ===== */
.entangle-ways__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--eb-card)), 1fr));
	gap: var(--eb-gap) calc(var(--eb-gap) * 1.5);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-ways__way {
	display: grid;
	align-content: start;
	gap: var(--eb-space-sm);
	margin: 0;
}
.entangle-ways__way .entangle-icon {
	inline-size: auto;
	block-size: auto;
	color: var(--eb-accent);
	font-size: var(--eb-icon);
}
.entangle-ways__title {
	margin: 0;
	font-size: var(--eb-title-sm);
	line-height: var(--eb-leading-snug);
	line-height: var(--eb-leading-snug);
}
.entangle-ways__text {
	margin: 0;
	color: var(--eb-muted);
}
.entangle-ways__action {
	margin: var(--eb-space-xs) 0 0;
}
/* A way whose own theme draws no button: the link still reads as the thing to do. */
.entangle-ways__link:where(:not([class*="wp-element-button"])) {
	font-weight: 600;
}

.entangle-documents__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-documents__item {
	margin: 0;
	overflow-wrap: anywhere;
}
.entangle-documents__link {
	font-weight: 600;
}
.entangle-documents__meta {
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
	white-space: nowrap;
}
.entangle-documents__note {
	margin: var(--eb-space-2xs) 0 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
}

/* ── One icon above a step or a way, F2f (Frontend\Icon) ──────────────────
   A glyph of WordPress's Dashicons font (the block names the font's stylesheet in its own `style`, so it is there exactly where an icon is).
   The font sizes the element at 20 px; here it is the size of a pictogram, in the brand colour of the page where it has one. */
.entangle-icon.dashicons {
	display: block;
	box-sizing: content-box;
	width: 1em;
	height: 1em;
	font-size: var(--eb-icon);
	line-height: var(--eb-leading-flat);
	color: var(--color-brand, currentColor);
}

/* ── Links to share a page, F2c (Frontend\Share) ──────────────────────────
   "Share:" and a row of plain links (Facebook, WhatsApp, e-mail) and a button that copies the address (only where share.js
   runs: the item is hidden until then). The look is a quiet pill made of the page's own tokens; on the page of a proposal
   (`--page`) the row has the width of the page's content. */
.entangle-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-xs) var(--eb-space-md);
	margin-block: var(--eb-gap);
}
/* The strip of the front page between two sections (the owner, 29. 10.): held by a line above and below, not floating
   in the air between them and not a box. The head of a page has its own (`--page`). */
.entangle-share:not(.entangle-share--page) {
	margin-block: 0;
	padding-block: var(--eb-space-lg);
	border-block: 1px solid var(--eb-rule);
}
/* In the head of a page it is one of the buttons of its row (the owner, 29. 10.): compact, the marks close together. */
.entangle-share--page {
	gap: var(--eb-space-xs);
	margin-block: 0;
}
.entangle-share--page .entangle-share__label {
	font-size: var(--eb-text-sm);
}
.entangle-share--page .entangle-share__list {
	gap: var(--eb-space-2xs);
}
.entangle-share__label {
	margin: 0;
	color: var(--eb-muted);
	font-weight: 600;
}
.entangle-share__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--eb-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-share__item {
	display: flex;
	align-items: center;
	gap: var(--eb-space-sm);
	margin: 0;
}
.entangle-share__item--copy {
	position: relative; /* what the button answers with hangs over the button itself */
}
.entangle-share__item[hidden] {
	display: none;
}
.entangle-share__link {
	display: inline-flex;
	align-items: center;
	gap: var(--eb-space-xs);
	box-sizing: border-box;
	min-height: var(--eb-target);
	padding: var(--eb-pad-pill);
	border: 1px solid transparent;
	/* The corners the site gives its buttons (29. 10.: square by default, round where the theme rounds them). */
	border-radius: var(--eb-radius);
	background-color: var(--color-brand, LinkText);
	color: var(--color-on-brand, Canvas);
	font: inherit;
	font-size: var(--eb-text-sm);
	line-height: var(--eb-leading-tight);
	text-decoration: none;
	cursor: pointer;
}
.entangle-share__link:hover,
.entangle-share__link:focus-visible {
	background-color: var(--color-brand-deep, var(--color-brand, LinkText));
	color: var(--color-on-brand, Canvas);
	text-decoration: none;
}
/* The mark of the place: the page's own ink, so it takes the colour of the button it is in. */
.entangle-share__icon {
	display: inline-flex;
	flex: none;
	width: 1.15em;
	height: 1.15em;
}
.entangle-share__icon > svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}
/* On the page of a proposal the row is the marks alone (the owner, 27. 10.): the name of each place stays in the page
   for a screen reader, so the button keeps the name it is read by. */
.entangle-share--page .entangle-share__link {
	justify-content: center;
	width: var(--eb-target-compact);
	min-height: var(--eb-target-compact);
	padding: 0;
}
.entangle-share--page .entangle-share__icon {
	width: 1rem;
	height: 1rem;
}
/* "Follow", next to the links (Proposal\Around): the same height and corners, a quieter button — it does not say
   where to go, it asks to be told. No script yet: entangle.global will answer it. */
.entangle-follow {
	display: inline-flex;
	align-items: center;
	gap: var(--eb-space-xs);
	box-sizing: border-box;
	min-height: var(--eb-target-compact);
	margin: 0;
	padding: 0 var(--eb-space-sm);
	border: 1px solid var(--eb-accent);
	border-radius: var(--eb-radius);
	background: transparent;
	color: var(--eb-accent);
	font: inherit;
	font-size: var(--eb-text-sm);
	font-weight: 600;
	line-height: var(--eb-leading-tight);
	cursor: pointer;
}
.entangle-share--page + .entangle-follow {
	margin-inline-start: var(--eb-space-sm);
}
.entangle-follow:hover,
.entangle-follow:focus-visible {
	background-color: var(--eb-accent);
	color: var(--color-on-brand, Canvas);
}
.entangle-follow:focus-visible {
	outline: 3px solid var(--color-ink, CanvasText);
	outline-offset: 2px;
}
.entangle-follow__icon {
	display: inline-flex;
	flex: none;
	width: 1rem;
	height: 1rem;
}
.entangle-follow__icon > svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}
.entangle-share__link:focus-visible {
	outline: 3px solid var(--color-ink, CanvasText);
	outline-offset: 2px;
}
/* What the copy button answers with (the owner, 18. 11.): a small label over the button itself, green when the
   address is in the clipboard — where the eye already is, and gone again in a moment. It was a grey line beside the
   row, which on the page of a proposal pushed the buttons apart and was easy to miss. When the copy failed, the
   label is dark and says what to do instead; that sentence is long, so it may wrap. The label is only drawn — it
   takes no click (the button under it stays a button) and is read to a screen reader as the status it is. */
.entangle-share__status {
	position: absolute;
	z-index: 5;
	inset-block-end: calc(100% + 8px);
	inset-inline-start: 50%;
	transform: translateX(-50%);
	padding: 0.375em 0.75em;
	border-radius: var(--eb-radius);
	background: var(--color-status-running, #15803d);
	color: #fff;
	font-size: var(--eb-text-sm);
	font-weight: 600;
	line-height: var(--eb-leading-snug);
	white-space: nowrap;
	pointer-events: none;
}
/* The small point that ties the label to its button. */
.entangle-share__status::after {
	content: "";
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 50%;
	margin-inline-start: -5px;
	border: 5px solid transparent;
	border-block-end-width: 0;
	border-block-start-color: var(--color-status-running, #15803d);
}
.entangle-share__status[data-state="failed"] {
	width: max-content;
	max-width: min(18rem, 70vw);
	background: var(--color-ink, #1f2937);
	white-space: normal;
}
.entangle-share__status[data-state="failed"]::after {
	border-block-start-color: var(--color-ink, #1f2937);
}
/* Under an invitation the copy button is the last of its row and the row ends at the edge of the page: there the
   label hangs from the END of the button and grows inwards, so it never runs out of the window (on the page of a
   proposal the row of marks has the "Follow" button after it, and the label stays over the middle of its mark). */
.entangle-share:not(.entangle-share--page) .entangle-share__status {
	inset-inline: auto 0;
	transform: none;
}
.entangle-share:not(.entangle-share--page) .entangle-share__status::after {
	inset-inline: auto 1.25rem;
	margin-inline-start: 0;
}
.entangle-share__status:empty {
	display: none;
}
@media (prefers-reduced-motion: no-preference) {
	.entangle-share__status:not(:empty) {
		animation: entangle-share-tip 0.18s ease-out;
	}
}
@keyframes entangle-share-tip {
	from {
		opacity: 0;
		translate: 0 4px;
	}
}
.entangle-share__sr,
.entangle-proposal__sr,
.entangle-contacts__sr,
.entangle-phases__phase .entangle-phases__now,
.entangle-share--page .entangle-share__text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ── The updates of the front page, Blocks\News (29. 10., anew 24. 11.) ────────────────
   Two halves with the gap of the page between them (the owner, 2. 11.): the general news on the left as the site's
   front page has its news — a row of headlines, the records module's (`cards`, four across), two across here — and the
   news from the proposals on the right as a project's tab has its updates: the module's plain list under a heading,
   two of them, and under the list two ways on, side by side, as two buttons of one kind: "Show more" (the theme's
   button of the module's `more` pagination: it adds the older ones under the list) and "Show all". No box and nothing
   that scrolls by itself (the owner, 24. 11.). On a phone the two halves stand under each other. */
.entangle-news {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-gap);
	margin: 0;
}
.entangle-news__title {
	margin: 0;
	font-size: var(--eb-title-sm);
	line-height: var(--eb-leading-snug);
}
/* The heading, the list and the two ways are one flex row that wraps: the heading and the list take a row each, the
   ways share the last. The module's wrapper gives its children to that row (`display: contents`), so the button the
   theme puts under the list and the link drawn here stand side by side. */
.entangle-news__records {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: start;
	gap: var(--eb-space-md) var(--eb-space-sm);
}
.entangle-news__records > .entangle-updates {
	display: contents;
}
.entangle-news__records > .entangle-news__title,
.entangle-news__records .entangle-updates__list,
.entangle-news__records .entangle-updates__empty {
	flex: 0 0 100%;
	margin: 0;
}
/* The first of the list starts right under the heading: the air above it is the row's own gap. */
.entangle-news__records .entangle-updates__item:first-child,
.entangle-news__records .entangle-updates__item:first-child > .entangle-update {
	margin-block-start: 0;
	padding-block-start: 0;
	border-block-start: 0;
}
/* These are the news from the proposals: which kind of record an update is about is not worth a word (a proposal on
   the ballot is no project yet), only which one. */
.entangle-news__records .entangle-update__about-label {
	display: none;
}
/* Much tighter than a list of updates is elsewhere (the owner, 24. 11.): side news beside the general ones, read at a
   glance. On top of the module's feed look (`compact`): the date and the proposal share ONE small line, the title
   follows at the size of the text, and of the text there are two lines in the small size and the quiet colour — the
   row opens the whole update. Little air between the rows. (One class more than the module's own rules of the feed
   look, whose stylesheet comes after this one.) */
.entangle-news__records .entangle-updates .entangle-updates__item {
	padding-block-end: var(--eb-space-sm);
}
.entangle-news__records .entangle-updates .entangle-updates__item:not(:first-child) {
	padding-block-start: var(--eb-space-sm);
}
.entangle-news__records .entangle-updates .entangle-update__text {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	gap: var(--eb-space-2xs) var(--eb-space-sm);
}
.entangle-news__records .entangle-update__text > * {
	grid-column: 1 / -1;
}
.entangle-news__records .entangle-update__text > .entangle-update__meta {
	grid-column: 1;
	grid-row: 1;
	font-size: var(--eb-text-xs);
	line-height: var(--eb-leading-snug);
}
.entangle-news__records .entangle-update__text > .entangle-update__about {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	overflow: hidden;
	font-size: var(--eb-text-xs);
	line-height: var(--eb-leading-snug);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.entangle-news__records .entangle-updates .entangle-update__title {
	line-height: var(--eb-leading-snug);
}
.entangle-news__records .entangle-update__body {
	display: -webkit-box;
	overflow: hidden;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}
.entangle-news__records .entangle-updates__pagination,
.entangle-news__records .entangle-more,
.entangle-news__all {
	min-height: 0;
	margin: 0;
}
/* Nothing older is left: the theme's button is gone, and its place with it. */
.entangle-news__records .entangle-more.is-done {
	display: none;
}
.entangle-news__all > a,
.entangle-news__records .entangle-more .entangle-more__button,
.entangle-news__records .entangle-updates__pagination > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 2.5rem;
	margin: 0;
	padding: 0.4em 1.125em;
	border: 1px solid var(--eb-accent);
	border-radius: var(--eb-radius-control);
	background: transparent;
	box-shadow: none;
	color: var(--color-brand-deep, var(--eb-accent));
	font: inherit;
	font-size: var(--eb-text-way);
	font-weight: 600;
	line-height: var(--eb-leading-tight);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.entangle-news__records .entangle-more .entangle-more__button[hidden] {
	display: none;
}
@media (hover: hover) {
	.entangle-news__all > a:hover,
	.entangle-news__records .entangle-more .entangle-more__button:hover,
	.entangle-news__records .entangle-updates__pagination > a:hover {
		background: var(--color-brand-soft, color-mix(in srgb, var(--eb-accent) 12%, transparent));
		color: var(--color-brand-deep, var(--eb-accent));
	}
}
@media (min-width: 48rem) {
	.entangle-news--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
}
/* Beside the proposals' news the row of headlines has half the page: two across where it would be four. */
@media (min-width: 64rem) {
	.entangle-news--two .entangle-news__general .entangle-updates__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ── The heading of a section and the way to the whole list in one row (Blocks\ListedSection `head`, 29. 10.) ──
   As at the foot of a proposal's page (.entangle-proposal-more__head): the heading on the left, the primary button on
   the right, and the list under them at that band's air — two classes, so the theme's flow gap does not add itself. */
.entangle-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--eb-space-md);
}
.entangle-section-head > :is(h2, h3, h4, h5, h6) {
	margin: 0;
}
.entangle-section-head__ways {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eb-space-sm);
}
.wp-block-group > .entangle-section-head + *,
.wp-block-group > .wp-block-heading + .entangle-news {
	/* The air the foot of a proposal's page has between its row and its cards, measured (the owner, 30. 10.): the
	   row's own step (--eb-section-head-after) and the flow gap of the band under it (spacing-50) — 40 px here. The
	   steps themselves, not the tokens: what follows is another module's block too (the projects'), where the
	   budget's tokens are not declared. The news have no button, and the same air under their heading (30. 10.). */
	margin-block-start: calc(var(--wp--preset--spacing--30, 1rem) + var(--wp--preset--spacing--50, 1.5rem));
}
/* A button of the row is a button: the arrow of the link it was at the foot of the list goes. */
.entangle-section-head__ways a:not(.entangle-section-head__link)::after {
	content: none;
}
/* The way to the whole list beside the heading (the owner, 23. 11.): the small outlined button a list of the suite
   has there — the way to all the engagements (entangle-records, engagements.css `--headed`), measure for measure:
   the accent as a line, its deep tone as the words, an arrow after them. */
.entangle-section-head__ways .entangle-section-head__link,
.entangle-editions__all-link,
.entangle-proposal-more__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	box-sizing: border-box;
	min-height: 2.5rem;
	padding: 0.4em 1.125em;
	border: 1px solid var(--eb-accent);
	border-radius: var(--eb-radius-control);
	color: var(--color-brand-deep, var(--eb-accent));
	font-size: var(--eb-text-way);
	font-weight: 600;
	line-height: var(--eb-leading-tight);
	text-decoration: none;
	white-space: nowrap;
}
.entangle-section-head__ways .entangle-section-head__link::after,
.entangle-editions__all-link::after,
.entangle-proposal-more__all::after {
	content: "\2192";
	content: "\2192" / "";
	font-size: inherit;
	line-height: inherit;
}
.entangle-section-head__ways .entangle-section-head__link:dir(rtl)::after,
.entangle-editions__all-link:dir(rtl)::after,
.entangle-proposal-more__all:dir(rtl)::after {
	content: "\2190";
	content: "\2190" / "";
}
@media (hover: hover) {
	.entangle-section-head__ways .entangle-section-head__link:hover,
	.entangle-editions__all-link:hover,
	.entangle-proposal-more__all:hover {
		background: var(--color-brand-soft, color-mix(in srgb, var(--eb-accent) 12%, transparent));
	}
}
/* In a narrow window that button stands under the list, the whole width: the one thing left to do after the last
   card, as under the engagements. One link in the markup — the row dissolves into its section (`display: contents`),
   the section is a column, and the button is its last item. The children of a constrained group are centred by auto
   margins, which in a column would shrink them to their content: every item is the whole width instead. */
@media (max-width: 47.9375rem) {
	.wp-block-group:has(> .entangle-section-head--foot) {
		display: flex;
		flex-direction: column;
	}
	.wp-block-group:has(> .entangle-section-head--foot) > * {
		width: 100%;
	}
	.wp-block-group > .entangle-section-head--foot {
		display: contents;
	}
	.wp-block-group > .entangle-section-head--foot > .entangle-section-head__ways {
		order: 1;
		margin-block-start: var(--eb-gap);
	}
	.wp-block-group > .entangle-section-head--foot .entangle-section-head__link {
		flex: 1 1 auto;
		min-height: 2.75rem;
	}
}
/* The previous editions two across the whole width (`columns: 2`). */
@media (min-width: 48rem) {
	.entangle-editions--two .entangle-editions__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ── The summary of an edition, its page (29. 10.; Patterns::edition_page()) ──────────
   The facts of the year in one line under its name (EditionBlocks::facts()): the word small and quiet, the number
   above the line. The chosen proposals are the cards of the list (Results\Block::chosen()) and under them the way
   to the whole of the results. */
.entangle-edition-facts__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--eb-space-sm) var(--wp--preset--spacing--60, 2.5rem);
	margin: 0;
	padding-block: var(--eb-space-md);
	border-block: 1px solid var(--eb-rule);
}
.entangle-edition-facts__fact {
	display: flex;
	flex-direction: column;
	gap: var(--eb-space-2xs);
}
.entangle-edition-facts__fact dt {
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.entangle-edition-facts__fact dd {
	margin: 0;
	font-weight: 600;
}
.entangle-results-chosen {
	display: grid;
	gap: var(--eb-gap);
}
.entangle-results-chosen__all {
	margin: 0;
}

/* ── The foot of the page of a proposal, F2c (Proposal\Neighbours) ───────────
   The previous and the next proposal of the edition, and a few more as cards. The width of the page's content; the cards are
   the list's (`.entangle-proposal`). */
.entangle-proposal-around {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-foot-band);
	width: 100%;
	/* No measure of its own any more (29. 10.): the band inside it is the width of the PAGE, as the projects' band
	   is, and what has to keep the measure of the page keeps it itself. */
}
/* The air between the tabs and the way on: the same step on the page of a project (`.entangle-projects-nav`), and it
   is all the air there is — two classes, so that the theme's gap of a flow layout does not add itself to it. */
.entangle-projects-sections ~ .entangle-proposal-around {
	margin-block-start: var(--eb-foot-top);
}
/* In a narrow window the way on is the row the page opens with (the projects draw and show it there:
   `.entangle-projects-hero__nav--foot`, up to 599 px - the owner, 23. 11.), and it stands right on the band of cards
   under it: no air between the two. */
@media (max-width: 37.4375rem) {
	.entangle-proposal-around:has(> .entangle-projects-hero__nav--foot) {
		row-gap: 0;
	}
}
.entangle-proposal-nav {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--container, var(--entangle-budget-width, 64rem));
	margin-inline: auto;
	padding-inline: var(--gutter, var(--wp--custom--gutter, 1.25rem));
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--eb-gap);
}
/* The links themselves are the projects' (`.entangle-projects-nav__link`, the owner 31. 10.: the way on of a proposal
   looks as the way on of a project does, and a theme that styles one styles both); the budget keeps the row. */
/* A band of its own colour across the whole page (the owner, 28. 10.), the same as the band of projects at the foot
   of a project's page: the page is read to its end, and the way on is offered there. */
.entangle-proposal-more {
	padding-block: var(--eb-band-top) var(--eb-band-bottom);
	background: var(--eb-band-surface);
}
/* The measure of the page as the theme's own container keeps it: its width WITH the gutter inside (the nav above
   and the projects' band the same), so the cards begin and end where the header and the rest of the page do. */
.entangle-proposal-more__inner {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eb-gap);
	width: 100%;
	max-width: var(--eb-band-page);
	margin-inline: auto;
	padding-inline: var(--gutter, var(--wp--custom--gutter, 1.25rem));
}
/* The name of the band and, at the end of its line, the way to all of them; where the line cannot hold both, under
   each other. A little more air from the cards than between them (the owner, 29. 10.; the projects' band the same). */
.entangle-proposal-more__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--eb-space-md);
	margin-block-end: var(--eb-section-head-after);
}
.entangle-proposal-more__title {
	margin: 0;
	font-size: var(--eb-title-lg);
	line-height: var(--eb-leading-tight);
}
/* The way to the whole edition: the small outlined button a section of the budget's first page has beside its heading
   (`.entangle-section-head__link`, drawn with it above; the owner, 23. 11.), not a filled one. */
.entangle-proposal-more__all {
	flex: 0 0 auto;
}
.entangle-proposal-more__action {
	margin: 0;
	text-align: center;
}
.entangle-proposal-more__action > [hidden] {
	display: none;
}
/* The button that shows the next row: the shape the theme gives a quiet button, nothing of its own. */
.entangle-proposal-more__button {
	cursor: pointer;
}
/* In a narrow window the way to the whole edition stands under the cards, the whole width, as under a section of the
   first page: the head dissolves into the band's column and the link is its last item. Where there is also a row
   left to show, the two stand under each other as one pair - the filled one that shows more first, the outlined way
   out under it, both the whole width and closer to each other than to the cards. A paragraph whose button is hidden
   (every card is shown) is not a row of the column at all. */
@media (max-width: 47.9375rem) {
	.entangle-proposal-more__head {
		display: contents;
	}
	.entangle-proposal-more__title {
		margin-block-end: var(--eb-section-head-after);
	}
	.entangle-proposal-more__all {
		order: 1;
		display: flex;
		min-height: 2.75rem;
	}
	.entangle-proposal-more__button {
		justify-content: center;
		width: 100%;
		min-height: 2.75rem;
	}
	.entangle-proposal-more__action:not(:has(> :not([hidden]))) {
		display: none;
	}
	.entangle-proposal-more__inner:has(.entangle-proposal-more__action > :not([hidden])) .entangle-proposal-more__all {
		margin-block-start: calc(var(--eb-space-sm) - var(--eb-gap));
	}
}

/* ── The title of the page of the proposals and the choice of the edition, one row (Frontend\EditionPill, 31. 10.) ──
   The title, and right beside it a grey pill (the owner, 31. 10.: next to the heading, not at the far end of the
   row) — the projects' archive has its year in the same place, the same
   pill (entangle-projects' .entangle-projects-year). The row takes the air of a page's title above and below it
   (the base theme's spacing 70 / 60) and the title gives its own up, so the two are centred on each other; where they
   do not fit side by side the pill goes under the title, close to it. */
.entangle-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	/* The same 24 px between the title and the pill as the projects' archive has (.entangle-projects-title-row). */
	gap: var(--wp--preset--spacing--30, 1rem) 24px;
}
/* WordPress's own reset of the margins of the first child in a flow layout weighs two classes, and wins over one
   class and over two on order: two classes and the element. */
.entangle-title-row,
.wp-block-group > div.entangle-title-row {
	margin-block: var(--wp--preset--spacing--70, 3rem) var(--wp--preset--spacing--60, 2rem);
}
.entangle-title-row > h1.wp-block-post-title {
	margin-block: 0;
}
.entangle-pill {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--eb-space-2xs);
	box-sizing: border-box;
	min-height: var(--eb-target);
	padding-inline: var(--eb-space-md) var(--eb-space-xs);
	border-radius: var(--eb-radius-pill);
	background: var(--color-bg-alt, color-mix(in srgb, currentColor 7%, transparent));
	color: var(--color-ink, inherit);
	font-weight: 600;
}
/* Beside the title it stands a tenth of the title's size lower, as the projects' pill does: a word of small letters with
   tails (Návrhy) has its weight on the small letters, not between the top of its capital and its baseline. */
.entangle-title-row > .entangle-pill {
	translate: 0 calc(var(--wp--preset--font-size--display, 4rem) * 0.1);
}
.entangle-pill:hover {
	background: color-mix(in srgb, var(--color-bg-alt, Canvas) 92%, currentColor);
}
.entangle-pill:has(:focus-visible:not(.is-select-open)) {
	outline: 2px solid var(--eb-accent);
	outline-offset: 2px;
}
/* A select of the pill is a word with a chevron, no box: the pill is the box. */
.entangle-pill__field {
	position: relative;
	display: inline-flex;
}
.entangle-pill__field::after {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.entangle-pill__select {
	min-height: var(--eb-target);
	margin: 0;
	padding: 0 30px 0 0;
	border: 0;
	appearance: none;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
/* The pill draws the ring: the theme's ring on every focused field must not add a second one inside it. */
.entangle-pill .entangle-pill__select:focus-visible {
	outline: none;
}
/* "Show": without the script it applies the choice; with it, only for the keyboard (proposals-filter.js). */
.entangle-pill__go {
	min-height: calc(var(--eb-target) - 8px);
	padding: 0 var(--eb-space-sm);
	border: 0;
	border-radius: var(--eb-radius-pill);
	background: var(--color-card, Canvas);
	color: inherit;
	font: inherit;
	font-size: var(--eb-text-sm);
	cursor: pointer;
}
.entangle-pill.is-enhanced:not(.is-keyboard) .entangle-pill__go {
	display: none;
}

/* ── The timeline of an edition behind a small link (`collapsed`, the page of an edition, 31. 10.) ── */
.entangle-phases--collapsed {
	margin-block-start: var(--eb-space-sm);
}
.entangle-phases__summary {
	display: inline-flex;
	align-items: center;
	gap: var(--eb-space-xs);
	min-height: var(--eb-target);
	color: var(--eb-accent);
	font-size: var(--eb-text-sm);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.entangle-phases__summary::-webkit-details-marker {
	display: none;
}
.entangle-phases__summary::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
}
.entangle-phases__toggle[open] > .entangle-phases__summary::after {
	transform: translateY(25%) rotate(-135deg);
}
.entangle-phases__summary:hover {
	text-decoration: underline;
}
.entangle-phases__summary:focus-visible {
	outline: 2px solid var(--eb-accent);
	outline-offset: 2px;
}
.entangle-phases__toggle[open] > .entangle-phases__list {
	margin-block-start: var(--eb-space-md);
}

/* ── The contacts of the budget (Blocks\Contacts, the owner, 31. 10.) ────────────────────────────────────────────────
   What was filled in decides the shape: with a form, who to ask on the left and the form on the right (Děčín, Liberec,
   Teplice); without one, the people side by side across the width. A person is a card of the size of a business card:
   the round photo (or the initials), the name, the role, the lines with their drawings, a short text.
   The two halves are the halves of the lists of the page (the owner, 24. 11.): the gap between them is the gap of
   the cards, so the form begins where the right half of the list above it does. */
.entangle-contacts {
	display: grid;
	gap: var(--wp--preset--spacing--60, 2.5rem) var(--eb-gap);
	align-items: start;
}
@media (min-width: 56rem) {
	.entangle-contacts--with-form {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}
.entangle-contacts__intro {
	max-width: var(--eb-measure);
	margin: 0 0 var(--eb-space-lg);
	color: var(--eb-muted);
}
.entangle-contacts__people {
	display: grid;
	gap: var(--eb-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-contacts:not(.entangle-contacts--with-form) .entangle-contacts__people {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: var(--eb-space-lg) var(--eb-gap);
}
.entangle-contacts__person {
	display: grid;
	grid-template-columns: var(--eb-avatar) minmax(0, 1fr);
	gap: 0 var(--eb-space-md);
	align-items: start;
	margin: 0;
}
.entangle-contacts__avatar {
	display: grid;
	place-items: center;
	width: var(--eb-avatar);
	height: var(--eb-avatar);
	border-radius: 50%;
	object-fit: cover;
	background: var(--eb-chip-bg);
	color: var(--eb-accent);
	font-size: var(--eb-title-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.entangle-contacts__card {
	min-width: 0;
	padding-block-start: var(--eb-space-2xs);
}
.entangle-contacts__name {
	margin: 0;
	font-size: var(--eb-title-sm);
	line-height: var(--eb-leading-snug);
}
.entangle-contacts__role {
	margin: var(--eb-space-2xs) 0 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
}
.entangle-contacts__lines {
	display: grid;
	gap: var(--eb-space-2xs);
	margin: var(--eb-space-sm) 0 0;
	padding: 0;
	list-style: none;
}
.entangle-contacts__line {
	display: flex;
	align-items: baseline;
	gap: var(--eb-space-xs);
	margin: 0;
	overflow-wrap: anywhere;
}
.entangle-contacts__icon {
	display: inline-flex;
	flex: none;
	width: 1em;
	height: 1em;
	color: var(--eb-muted);
	transform: translateY(0.125em);
}
.entangle-contacts__icon > svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}
.entangle-contacts__line a {
	color: inherit;
	text-decoration-color: var(--eb-rule);
	text-underline-offset: 0.2em;
}
.entangle-contacts__line a:hover,
.entangle-contacts__line a:focus-visible {
	color: var(--eb-accent);
	text-decoration-color: currentColor;
}
.entangle-contacts__text {
	margin: var(--eb-space-sm) 0 0;
	color: var(--eb-muted);
	font-size: var(--eb-text-sm);
}
/* The office under the people: set apart by a line, its lines under its heading as a person's are under the name. */
.entangle-contacts__office--after {
	margin-block-start: var(--eb-space-lg);
	padding-block-start: var(--eb-space-lg);
	border-block-start: 1px solid var(--eb-rule);
}
.entangle-contacts__office .entangle-contacts__name + .entangle-contacts__lines {
	margin-block-start: var(--eb-space-xs);
}
/* The form in a panel of its own, on the quiet grey of the site (the owner, 23. 11.: a white card with a hairline
   did not stand apart from the contacts beside it). The ground sets it apart, so it has no line around it, and the
   fields stay white on it. */
.entangle-contacts__form {
	/* The card is the form's measure: a narrower form inside it would leave the right side emptier than the left. */
	--entangle-form-width: none;
	box-sizing: border-box;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--eb-radius);
	background: var(--eb-quiet);
}
.entangle-contacts__form > .entangle-contacts__name {
	margin-block-end: var(--eb-space-md);
}

/* The card of the pin chosen on the map beside the gallery (and of the one under the pointer): entangle-projects' map.js
   marks it, as it marks a card of the projects' archive (31. 10.). */
.entangle-proposal.is-highlighted {
	outline: 2px solid var(--eb-accent);
	outline-offset: 6px;
	border-radius: var(--eb-radius);
}
