/* Tvoříme město — design layer.

   Direction: a calm civic site in colours almost everybody is at ease with. White paper, a navy ink, one blue for what can
   be done (links, buttons); one sans, Source Sans 3, for headings and text. The sections alternate white and a
   light mist band instead of one white surface cut by hairlines. A vivid green and a red, kept from the
   Entangle collages appear only as small accents — a thin line, a dash, a dot, one note. Buttons are flat.

   Everything here sits on top of the base and the plugins and changes no markup: tokens first (the plugins read
   --color-*, --radius), then the page, then the components. Scoped with `body` where a plugin's own rule has the
   same weight. Loaded after project.css (inc/assets.php). */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
	--td-ink: var(--wp--preset--color--ink, #111a2b);
	--td-ink-soft: var(--wp--preset--color--ink-soft, #4b5565);
	--td-brand: var(--wp--preset--color--brand, #2f66c8);
	--td-brand-deep: var(--wp--preset--color--brand-deep, #244fa0);
	--td-brand-soft: var(--wp--preset--color--brand-soft, #e3ecfa);
	--td-mist: var(--wp--preset--color--surface, #f2f5f9);
	--td-paper: #f5f7fa; /* the off-white of words on ink (the footer) */
	--td-line: #dde3ec;
	/* One accent: the blue of action. The decorative lines, dashes and dots that used to take turns among several
	   colours are all this blue; the names of the set stay so that every rule below keeps reading the same
	   variables. On the ink of the footer the blue is a lighter one, so that it can be read there. */
	--td-accent-brand: var(--td-brand);
	--td-accent-green: var(--td-brand);
	--td-accent-red-soft: var(--td-brand-soft);
	--td-accent-red: var(--td-brand);
	--td-accent-ink: var(--td-brand);
	--td-accent-on-ink: #9dbdf2;
	--td-accent-ring: linear-gradient(90deg, var(--td-brand), var(--td-brand));
	/* The stages of a record (the plugins read these): running green (kept: the colour of 'going'), waiting ochre, stopped red — each deep
	   enough to be text on white (5.2:1, 5.9:1, 6.6:1). "Done" is the base's. */
	--color-status-running: #15803d;
	--color-status-caution: #8a5a00;
	--color-status-stop: #b42318;
	--td-section: clamp(3rem, 6vw, 5.5rem);
	--td-head-gap: clamp(1.5rem, 2.5vw, 2rem);
	/* The lists of the plugins that bring their own heading (engagements, projects, updates) give it this air. */
	--entangle-head-gap: var(--td-head-gap);
	--td-grid: clamp(1.25rem, 2vw, 2rem);
	--td-shadow: 0 1px 2px rgb(17 26 43 / 0.05), 0 12px 32px -16px rgb(17 26 43 / 0.22);
	--td-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* A full-bleed band is drawn 50vw out of its column: the page never scrolls sideways for it. */
html {
	overflow-x: clip;
}

/* Focus: one visible ring everywhere, in the colour of action. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--td-brand);
	outline-offset: 3px;
}

/* A field of a form as round as the button under it: two radii side by side look like two systems. */
body .entangle-form {
	--ef-radius: var(--radius-control);
}

/* ── Header: the menu as words in ink, search and menu as two outlined circles ── */
/* The words of the menu are set in the font of the headings and read as text: ink, blue when pointed at, with a
   blue line under the page you are on; the search and the menu of a phone are the same 44 px circle with a 1px
   line around it. */
body .site-header .nav__list > li > a {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: -0.015em;
}
/* Six items: each stays on one line, the gap between them gives way first. */
body .site-header .nav__list > li > a {
	white-space: nowrap;
}
body .site-header .nav__list {
	gap: clamp(0.75rem, 1.6vw, 2rem);
}
body .site-header .nav__list a {
	color: var(--td-ink);
}
body .site-header .nav__list a:hover {
	color: var(--td-brand);
}
body .site-header .nav__list a::after {
	background: var(--td-brand);
}
body .site-header :is(.nav__search, .nav__toggle) {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	flex: none;
	border: 1px solid #c2cad6;
	border-radius: 50%;
	background: transparent;
	color: var(--td-ink);
}
body .site-header .nav__search .icon {
	width: 20px;
	height: 20px;
}
body .site-header :is(.nav__search, .nav__toggle):is(:hover, :focus-visible) {
	border-color: var(--td-brand);
	background: transparent;
	color: var(--td-brand);
}
@media (prefers-reduced-motion: no-preference) {
	body .site-header .nav__search {
		transition: border-color 0.15s ease, color 0.15s ease;
	}
}

/* ── The page: rhythm and bands ─────────────────────────────────────────── */
/* The sections of a page of blocks: one rhythm, no gap stacked on top of their own padding. The padding the blocks
   carry inline (spacing 70) is the editor's; the design's rhythm wins. */
.wp-block-post-content > section.wp-block-group {
	margin-block-start: 0;
	padding-block: var(--td-section) !important;
}
.wp-block-post-content > section.wp-block-group + :where(div.wp-block-group) {
	margin-block-start: 0;
}
/* A list that stands on the page by itself (the front page: where people can take part now) is a section
   too: a section's air under it, and above it what the block before it leaves. */
.wp-block-post-content > :is(.entangle-projects-archive, .entangle-engagements) {
	box-sizing: border-box;
	max-width: var(--container);
	margin-inline: auto;
	padding-block: 0 var(--td-section) !important;
	padding-inline: var(--gutter);
}
/* Two sections on the same ground, one after the other, are parted by ONE section's air, not by the bottom of the
   first and the top of the second: only a band of another colour (the stats, the editions, the finished projects
   at the foot, and any section the page gives a background — `.has-background`, 18. 11.) needs its own air on both
   sides. */
.wp-block-post-content > section.wp-block-group:not(:has(.entangle-about), :has(.entangle-editions), .has-background)
	+ section.wp-block-group:not(:has(.entangle-about), :has(.entangle-editions), :last-child:has(.entangle-projects-cards), .has-background) {
	padding-block-start: 0 !important;
}
/* The last section of a page on the white: the page's own space above the footer (the base theme's
   --entangle-footer-space) is the air under it, and it adds none of its own — one space above the footer, not two. */
.wp-block-post-content > section.wp-block-group:last-child:not(.has-background, :has(.entangle-about), :has(.entangle-editions), :has(.entangle-projects-cards)) {
	padding-block-end: 0 !important;
}
/* The signposts: a plain row of three names with their sentences at the foot of the front page, between the band
   of the news and the footer (the owner, 18. 11.: under the news, with no line over and under the row and no air
   around it). The section adds nothing: no padding of its own, no hairlines of the base theme's style, and the page
   leaves no space above the footer — the air of the row is the signposts' own inset, and the lines between them
   stay. */
.wp-block-post-content > section.wp-block-group:has(> .is-style-signposts) {
	padding-block: 0 !important;
}
.wp-block-post-content > section.wp-block-group > .is-style-signposts {
	margin-block: 0;
	border-block: 0;
}
.site-main:has(.wp-block-post-content > section.wp-block-group:last-child > .is-style-signposts) {
	--entangle-footer-space: 0px;
}
/* A page that ends in a band the page named: the band meets the footer — whose own first part is a band too — with
   no strip of white between the two. The space above the footer is the main's (the base theme's
   --entangle-footer-space); here it is nothing. */
.site-main:has(.wp-block-post-content > section.wp-block-group.has-background:last-child) {
	--entangle-footer-space: 0px;
}
/* A section the page gives a background is a band the width of the WINDOW, as the bands above are: the section
   itself is only as wide as the page's widest column, so its ground is drawn again 50vw out of it. */
.wp-block-post-content > section.wp-block-group.has-background {
	position: relative;
	isolation: isolate;
	padding-inline: 0;
}
.wp-block-post-content > section.wp-block-group.has-background::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline: calc(50% - 50vw);
	z-index: -1;
	background: inherit;
}
/* The first section of a page that has its title above it (Návrhy, Výsledky) begins under the title,
   not a whole section's air below it: the gallery's filters then stand where the projects' archive has them. */
.page-hero + .page-body .wp-block-post-content > section.wp-block-group:first-child {
	padding-block-start: 1.5rem !important;
}
/* The filters of the gallery belong to the title: the title's own air under it is enough, as on the
   archive of the projects. */
.page-hero + .page-body .wp-block-post-content > section.wp-block-group:first-child:has(> .entangle-proposals) {
	padding-block-start: 0 !important;
}
/* Všechny ročníky: the cards stand on a band of the mist, which needs the same air above them as under them. */
.page-hero + .page-body .wp-block-post-content > section.wp-block-group:first-child:has(> .entangle-editions) {
	padding-block-start: var(--td-section) !important;
}

/* Bands: the about-and-phases section and the past editions sit on the mist, the width of the window. */
.wp-block-post-content > section.wp-block-group:is(:has(.entangle-about), :has(.entangle-editions)) {
	position: relative;
	isolation: isolate;
}
.wp-block-post-content > section.wp-block-group:is(:has(.entangle-about), :has(.entangle-editions))::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline: calc(50% - 50vw);
	z-index: -1;
	background: var(--td-mist);
}
/* The proposals and the finished projects are two white sections in a row: their air would add up to
   a hole in the page, so they share less of it with a hairline in its middle, the width of the content. The line hangs on
   the row of the heading, which is that wide at every width of the window. */
.wp-block-post-content > section.wp-block-group:has(> .entangle-proposals) + section.wp-block-group:has(> .entangle-projects-archive) {
	margin-block-start: calc(var(--td-section) * -0.4);
	padding-block-start: calc(var(--td-section) * 0.6) !important;
}
.wp-block-post-content > section.wp-block-group:has(> .entangle-proposals) + section.wp-block-group:has(> .entangle-projects-archive) > .entangle-section-head {
	position: relative;
}
.wp-block-post-content > section.wp-block-group:has(> .entangle-proposals) + section.wp-block-group:has(> .entangle-projects-archive) > .entangle-section-head::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: calc(var(--td-section) * -0.6);
	border-block-start: 1px solid var(--td-line);
}

/* The words above the table of the results: wider than the measure of running text, as they are two short
   paragraphs and the table under them is what the page is for. */
.td-results-words p {
	max-width: 62rem;
}

/* Section headings: the size of the theme's h2, air under them, and a row with its ways aligned to the heading. */
.wp-block-post-content > section > h2.wp-block-heading,
.entangle-section-head > h2,
.entangle-panel > h2.wp-block-heading {
	margin-block: 0 var(--td-head-gap);
	text-wrap: balance;
}
body .entangle-section-head {
	align-items: center;
	gap: 1rem 1.5rem;
	margin-block-end: var(--td-head-gap);
}
body .entangle-section-head > h2 {
	margin-block-end: 0;
}

/* The headings of the sections of a page — a list's own, a section's, the band under a record — are a step bolder
   than the names of the cards under them (the owner, 18. 11.: 700 over 600): a page of lists is read by its
   headings first. */
.entangle-engagements__title,
.entangle-projects-archive__title,
.entangle-updates__title,
.entangle-figures__title,
.wp-block-post-content section > h2.wp-block-heading,
.td-section-head > h2,
.entangle-section-head > h2,
.entangle-panel > h2.wp-block-heading,
.entangle-proposal-more__title,
.entangle-projects-more__title {
	font-weight: 700;
}

/* A heading with the way to all of it at its end, where the two are blocks of the page and not a list's own (the
   front page's projects: a heading, a button, and the tabs under them). The same row the lists of the plugins draw:
   the button the size of theirs, on the heading's middle. */
.td-section-head {
	align-items: center;
	gap: 1rem 1.5rem;
	margin-block: 0 var(--td-head-gap);
}
.td-section-head > h2.wp-block-heading {
	margin: 0;
	text-wrap: balance;
}
body .td-section-head .wp-block-button__link.wp-element-button {
	min-height: 2.5rem;
	padding: 0.4em 1.125em;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}
/* The projects of the front page, by where they stand: the strip of the tabs right under the heading's row, the
   cards under it. Each tab has its own way to all of ITS projects under its cards; where the window has the width,
   the one button of the heading stands for them, and in a narrow window they stand for the button. */
.td-home-projects .tabs__panel-inner {
	padding-top: var(--td-head-gap);
}
@media (min-width: 48rem) {
	.td-home-projects .entangle-projects-archive__more {
		display: none;
	}
}
@media (max-width: 47.99rem) {
	.td-home-projects .td-section-head .wp-block-buttons {
		display: none;
	}
}

/* Text: a measure a line can be read in, and air between lines. */
.wp-block-post-content :where(p, li) {
	text-wrap: pretty;
}

/* ── The heads over a photograph: one measure for both ─────────────────────
   The site has two: the head of the front page (the base theme's cover, edge to edge) and the introduction of the
   participatory budget (the budget's own block, a card on the line of the content, with its two ways out as bands at
   its foot). They are two blocks of two packages, and one thing to the eye (the owner, 18. 11.: the budget's is to go
   with the front page's in size and in type). What they share is named once, here; the card's own headline is a step
   under the window's (below, "Introduction of the phase"):
   - the height: a third of the width of the window, between 23 and 36rem;
   - the veil: the ink of this site, and no more of it than the words need — a shade under the words that is gone
     above them, so the upper half is the photograph as it is (the owner, 18. 11.: both were too dark);
   - the headline: the display's size for a line across a photograph, tight, and a soft shadow of the ink under it
     and under the sentence, which keeps the white readable where a roof or a cloud behind it is bright. */
body {
	--td-hero-min: clamp(23rem, 33vw, 36rem);
	--td-hero-veil: linear-gradient(to top, rgb(17 26 43 / 0.82) 0%, rgb(17 26 43 / 0.6) 32%, rgb(17 26 43 / 0.2) 66%, rgb(17 26 43 / 0) 100%);
	--td-hero-title: clamp(2.375rem, 4.7vw, 4.25rem); /* 68px on a desk (the owner, 18. 11.: a touch under the 76 it was) */
	--td-hero-title-shadow: 0 1px 2px rgb(17 26 43 / 0.3), 0 2px 28px rgb(17 26 43 / 0.5);
	--td-hero-text: var(--wp--preset--font-size--lead, 1.3125rem);
	--td-hero-text-gap: clamp(1rem, 1.6vw, 1.5rem);
	--td-hero-text-shadow: 0 1px 2px rgb(17 26 43 / 0.45), 0 1px 16px rgb(17 26 43 / 0.5);
}

/* ── Introduction of the phase (the one element to remember) ─────────────
   A card, not a window: it is narrower than the front page's head and holds more (a headline, a sentence and two
   ways out), so its sizes are a step under the front page's and are set against each other (the owner, 18. 11.: the
   headline in the front page's size stood out of all proportion to the sentence, the bands and the card):
   - one inset (--td-card-inset) is the card's measure: the words and the bands start that far from its edge, and
     the bands stand that far under the sentence;
   - the type is two sizes of one scale: the sentence (the lead) and the bands in the same size, bold, and the
     headline two and a half times the sentence — the display's size for a card, tight, in two lines at most on a desk;
   - the bands are the card's foot: tall, a fifth of its height on a desk. */
body .entangle-current-phase--cover {
	--td-card-inset: clamp(1.25rem, 2.8vw, 2.5rem);
	--eb-space-hero-inline: var(--td-card-inset);
	--eb-space-hero-rule: var(--td-card-inset);
	/* The air over the headline: at least the inset and a little more; the rest of the card's height is photograph. */
	--eb-space-hero: calc(var(--td-card-inset) * 1.25);
	min-height: var(--td-hero-min);
	border-radius: var(--radius);
	box-shadow: var(--td-shadow);
}
body .entangle-current-phase--cover::before {
	background: var(--td-hero-veil);
}
/* The band of the photograph the card shows: a little below its middle — the bands cover the foot of the card, and
   the bridge and the river are to stay above them. */
body .entangle-current-phase--cover .entangle-current-phase__image {
	object-position: 50% 60%;
}
body .entangle-current-phase--cover .entangle-current-phase__inner {
	gap: 0;
}
body .entangle-current-phase--cover .entangle-phases__label {
	max-width: 22ch;
	font-size: clamp(2rem, 1.25rem + 2.6vw, 3.375rem);
	font-weight: 600;
	line-height: 1.08;
	text-shadow: var(--td-hero-title-shadow);
	text-wrap: balance;
}
body .entangle-current-phase--cover .entangle-phases__text {
	/* One line on a desk for a sentence of the usual length; the plugin's measure. */
	max-width: 68ch;
	margin-block-start: clamp(0.75rem, 1.1vw, 1rem);
	font-size: var(--td-hero-text);
	line-height: 1.5;
	text-shadow: var(--td-hero-text-shadow);
	text-wrap: pretty;
}
body .entangle-current-phase--cover .entangle-phases__text > :is(p, ul, ol) {
	margin-block: 0;
}
/* The two ways out are tall (the owner, 18. 11.: much taller than the low bands they were for a while, then a
   little lower again): a fifth of the card on a desk, where they lie side by side; on a phone they stand one under the other, so each is lower. Their
   words are the sentence's size, bold. */
body .entangle-current-phase--cover .entangle-phases__band {
	min-height: clamp(4.75rem, 3rem + 4vw, 6.5rem);
	padding-block: 1rem;
	font-size: var(--td-hero-text);
	font-weight: 600;
	letter-spacing: -0.01em;
}
/* The two ways out of the introduction: the main one the blue of action (white words, 5.2:1), deeper under the
   pointer; the second white with ink words, the mist band when pointed at — the blue is the only colour in the
   row. */
body .entangle-current-phase--cover .entangle-phases__band--primary {
	background: var(--td-brand);
	color: #fff;
}
body .entangle-current-phase--cover .entangle-phases__band--secondary {
	background: #fff;
	color: var(--td-ink);
}
@media (hover: hover) {
	body .entangle-current-phase--cover .entangle-phases__band--primary:hover {
		background: var(--td-brand-deep);
		color: #fff;
	}
	body .entangle-current-phase--cover .entangle-phases__band--secondary:hover {
		background: var(--td-mist);
		color: var(--td-ink);
	}
	body .entangle-phases__band:hover::after {
		transform: translateX(6px);
	}
}
@media (prefers-reduced-motion: no-preference) {
	body .entangle-phases__band::after {
		transition: transform 0.25s var(--td-ease);
	}
}

/* The pill of the year or the edition beside a title: a step darker than the mist band, so that it is seen on it,
   and one more under the pointer. */
body :is(.entangle-projects-year, .entangle-pill) {
	background: var(--td-line);
}
body :is(.entangle-projects-year, .entangle-pill):hover {
	background: #cbd3df;
}

/* The feed from the proposals shows more than one row before it asks to be scrolled. */
body .entangle-news {
	--eb-news-min: 32rem;
}

/* ── Buttons: flat, in the colours of the palette ────────────────────────── */
/* The main buttons — a core button, the accent button of the header and the hero, the platform's filled button and
   the submit of a form — are the blue of action, flat: no outline in ink, no shadow, nothing that lifts them off
   the page. Pointed at, they go to the deeper blue. An outlined button is paper inside a blue line. */
body :is(.wp-block-button:not(.is-style-outline) > .wp-block-button__link.wp-element-button, .btn-accent, .entangle-btn--filled, .entangle-form__submit.wp-element-button) {
	border: 1px solid var(--td-brand);
	background: var(--td-brand);
	color: #fff;
	box-shadow: none;
}
body :is(.wp-block-button:not(.is-style-outline) > .wp-block-button__link.wp-element-button, .btn-accent, .entangle-btn--filled, .entangle-form__submit.wp-element-button):is(:hover, :focus-visible) {
	border-color: var(--td-brand-deep);
	background: var(--td-brand-deep);
	color: #fff;
	box-shadow: none;
	transform: none;
}
body :is(.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button, .entangle-btn--outline) {
	border: 1px solid var(--td-brand);
	background: #fff;
	color: var(--td-brand-deep);
	box-shadow: none;
}
body :is(.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button, .entangle-btn--outline):is(:hover, :focus-visible) {
	border-color: var(--td-brand-deep);
	background: var(--td-brand-soft);
	color: var(--td-brand-deep);
	box-shadow: none;
	transform: none;
}

/* ── News as cards: picture on top, date, title, two lines ──────────────── */
/* A row of cards wherever the list is cards (the budget's news), as many in a row as fit and the row filled. A list
   that asks for three or four columns is the plugin's own row of news (the front page) and is left as the plugin
   draws it; the cards here are cut to the same pattern — the picture three to two, the date, the title at the same
   size, two lines of the text — so the news of the two front pages and of the archive are one family (18. 11.). */
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__list {
	display: grid;
	gap: var(--td-grid);
	border: 0;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__list > .entangle-updates__item,
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__list > .entangle-updates__item + .entangle-updates__item {
	padding: 0;
	border: 0;
	background: transparent;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item + .entangle-updates__item {
	margin-block-start: 0;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item:focus-within {
	outline-offset: 6px;
	border-radius: var(--radius);
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update.has-image {
	grid-template-columns: minmax(0, 1fr);
	row-gap: 1rem;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--td-mist);
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__figure {
	max-width: none;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__figure img,
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__image {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__date {
	color: var(--td-ink-soft);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__title {
	font-size: 1.1875rem;
	line-height: 1.3;
	text-wrap: pretty;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__text {
	gap: 0.5rem;
}
/* Two lines of the text under the title (the plugin cuts a card's text to two), in the quiet colour. */
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__body {
	color: var(--td-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.5;
}
body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__more {
	display: none;
}
@media (hover: hover) {
	body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item:hover {
		background: transparent;
	}
	body .entangle-updates--cards:not(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item:hover .entangle-update__title a {
		color: var(--td-brand);
	}
}

/* ── About and the phases of the edition ────────────────────────────────── */
/* On the band: the about text stands on the mist as text, the phases in one white card beside it. */
body .entangle-panel {
	padding: 0;
	border: 0;
	background: transparent;
}
body .entangle-panel--box {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 0;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--td-shadow);
}
/* Its heading is a heading, not a head band over a line. */
body .entangle-panel--box > :is(h2, h3, h4):first-child {
	margin: 0 0 var(--td-head-gap);
	padding: 0;
	border: 0;
}
/* The two halves are two things side by side, each as tall as it is; the text beside the card begins where the
   card's own heading does. */
body .entangle-panel--half {
	height: auto;
}
body .entangle-panel--half:not(.entangle-panel--box) {
	padding-block-start: clamp(1.5rem, 3vw, 2.5rem);
}
.wp-block-post-content > section:has(.entangle-about) .wp-block-columns {
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
body .entangle-about__text {
	max-width: 62ch;
	font-size: 1.0625rem;
	line-height: 1.65;
}
body .entangle-about__text > p:first-child {
	color: var(--td-ink);
	font-size: 1.25rem;
	line-height: 1.55;
}
body .entangle-about__text > p:not(:first-child) {
	color: var(--td-ink-soft);
}

/* The timeline: done phases quiet, the current one in the plugin's own mark — one colour, no second ring around it. */
body .entangle-phases__phase--past .entangle-phases__label {
	color: var(--td-ink-soft);
	font-weight: 500;
}
body .entangle-phases__phase--current .entangle-phases__label {
	color: var(--td-ink);
}
body .entangle-phases__dates {
	font-variant-numeric: tabular-nums;
}

/* ── Proposals ──────────────────────────────────────────────────────────── */
/* The grid of the gallery (its columns, the air between rows and columns) is the plugin's, the same as the grid of
   the projects: nothing of it is set here. */
body .entangle-proposal__image {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--td-mist);
}
body .entangle-proposal__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
body .entangle-proposal__title {
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
@media (hover: hover) {
	body .entangle-proposal:hover .entangle-proposal__title a {
		color: var(--td-brand);
	}
}

/* ── Sharing: quiet outlined links, not four coloured slabs ─────────────── */
/* The strip closes the page: it shares the whole page, not the section above it. A hairline across the
   width of the page, the invitation on the left and the links on the right, and the air of a section's half before
   the footer. */
.wp-block-post-content > .wp-block-group:has(> .entangle-share) {
	padding-block: 0 clamp(2.5rem, 5vw, 4rem);
}
body .entangle-share:not(.entangle-share--page) {
	justify-content: space-between;
	gap: 1rem 2rem;
	max-width: var(--wp--style--global--wide-size, 100%);
	padding-block: 2rem 0;
	border: 0;
	border-block-start: 1px solid var(--td-line);
}
body .entangle-share:not(.entangle-share--page) .entangle-share__label {
	color: var(--td-ink);
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	font-weight: 600;
	letter-spacing: -0.01em;
}
body .entangle-share__label {
	color: var(--td-ink-soft);
	font-weight: 500;
}
body .entangle-share__link {
	border: 1px solid var(--td-line);
	background: #fff;
	color: var(--td-ink);
}
body .entangle-share__link:is(:hover, :focus-visible) {
	border-color: var(--td-brand);
	background: #fff;
	color: var(--td-brand);
}

/* ── An edition: its numbers read as numbers ────────────────────────────── */
/* The whole card is a link: a light shadow at rest, the full one and a small lift under the pointer. Its top is
   square, with the four accents along it, as the header has them. */
body .entangle-edition {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 0;
	border-block-start: 4px solid transparent;
	border-image: var(--td-accent-ring) 1;
	border-radius: 0 0 var(--radius) var(--radius);
	background: #fff;
	box-shadow: 0 1px 2px rgb(17 26 43 / 0.04), 0 6px 16px -10px rgb(17 26 43 / 0.16);
}
body .entangle-edition:has(.entangle-edition__title a:hover) {
	box-shadow: var(--td-shadow);
}
@media (prefers-reduced-motion: no-preference) {
	body .entangle-edition {
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}
	body .entangle-edition:has(.entangle-edition__title a:hover) {
		transform: translateY(-2px);
	}
}
body .entangle-edition__period {
	color: var(--td-ink-soft);
	font-size: 0.875rem;
}
body .entangle-edition__title {
	font-size: 1.5rem;
	letter-spacing: -0.015em;
}
body .entangle-edition__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, max-content));
	gap: 0.25rem 2.5rem;
	margin-block: 1.25rem;
}
body .entangle-edition__fact {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.125rem;
}
body .entangle-edition__fact dt {
	color: var(--td-ink-soft);
	font-size: 0.875rem;
}
body .entangle-edition__fact dd {
	margin: 0;
	color: var(--td-ink);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}
body .entangle-edition__links {
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--td-line);
}

@media (max-width: 600px) {
	body .entangle-edition__facts {
		gap: 0.25rem 1.5rem;
	}
	body .entangle-edition__fact dd {
		font-size: 1.25rem;
	}
}

/* ══ The front page of the city ═══════════════════════════════════════════ */

/* Bands of the front page: the numbers on the mist, a band of half a section's air (they are a line of the page,
   not a chapter of it); the news are a band the page names itself (the group's background). Cards that stand on
   a page by themselves are a band too; the finished projects where a page ends with them. */
.wp-block-post-content > :is(section.stats, div.cards, section.wp-block-group:last-child:has(.entangle-projects-cards)) {
	position: relative;
	isolation: isolate;
}
.wp-block-post-content > :is(section.stats, div.cards, section.wp-block-group:last-child:has(.entangle-projects-cards))::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline: calc(50% - 50vw);
	z-index: -1;
	background: var(--td-mist);
}
.wp-block-post-content > div.cards {
	padding-block: var(--td-section) !important;
}
.wp-block-post-content > section.stats {
	padding-block: calc(var(--td-section) * 0.6) !important;
}
/* A page that ENDS in one of these mist bands (the front page with its finished projects, Všechny ročníky with the
   editions) has no white between the band and the footer: the mist of the last band runs on through
   the main's bottom space (the base theme's --entangle-footer-space) down to the footer. (Taking that space away
   would need a :has() inside a :has(), which no browser takes.) */
.wp-block-post-content > :last-child:is(section.stats, div.cards, section.wp-block-group:has(.entangle-projects-cards), section.wp-block-group:has(.entangle-about), section.wp-block-group:has(.entangle-editions))::before {
	inset-block-end: calc(-1 * var(--entangle-footer-space, 0px));
}

/* ── The head of the front page: the base theme's cover, edge to edge (tools/setup-pages.php) ──
   The photograph of the city across the whole window, the headline and a sentence on it at its lower start, on the
   line of the content. The block gives the picture, the darkening and the place of the words; here are only the
   things that are this page's own, and they are the ones the introduction of the budget has too ("The heads over
   a photograph", above): the height follows the width of the window (the block's is one number of pixels for every
   window — a strip on a wide screen, most of a phone), the darkening is this site's veil (how strong it is stays
   the block's setting, its opacity), the headline and the sentence are the heads' size and shadow. */
body .td-home-hero {
	min-height: var(--td-hero-min) !important; /* the block's own height is inline */
}
body .td-home-hero .cover__overlay {
	background: var(--td-hero-veil);
}
/* The band of the photograph the window shows: the hills, the town and the river with its bridge — a little
   below the middle, so less of the sky and more of the water. */
body .td-home-hero .cover__img {
	object-position: 50% 66%;
}
body .td-home-hero .cover__content > h1 {
	max-width: 18ch;
	font-size: var(--td-hero-title) !important; /* a preset size, if the heading is given one, is !important */
	font-weight: 600;
	line-height: 1.04;
	text-shadow: var(--td-hero-title-shadow);
	text-wrap: balance;
}
body .td-home-hero .cover__content > p {
	max-width: 46ch;
	margin-block-start: var(--td-hero-text-gap);
	color: #fff;
	font-size: var(--td-hero-text) !important; /* the paragraph's preset size is !important */
	text-shadow: var(--td-hero-text-shadow);
	text-wrap: pretty;
}

/* The headline in the font of the display; a word singled out in it is not italic but blue. */
body .hero__title {
	font-weight: 600;
	text-wrap: balance;
}
body .hero__title em {
	font-style: normal;
	color: var(--td-brand);
}
body .hero__sub {
	color: var(--td-ink-soft);
}
body .hero__media img {
	border-radius: var(--radius);
}
/* The photograph of the hero in 3:2, at every width (the owner, 13. 11.). */
body .hero__media {
	aspect-ratio: 3 / 2;
}

/* A balanced hero: two columns of one height — the words on the left as one group, centred against the
   photograph (3:2) on the right — instead of a headline across the page over a narrow column of text and a wide photo.
   The block's markup stays: its lower row dissolves into the grid of the container (display: contents). On a phone
   the base's own order (headline, words, photo) holds. */
/* The air around the hero: below it before the band of the numbers, and above it less — the header already carries
   its own padding under the logo, so a little more is enough for the photograph to start close under it. */
body .hero {
	--td-hero-air: clamp(2.5rem, 4.5vw, 4rem);
	padding-bottom: var(--td-hero-air) !important; /* the block's own spacing is inline */
}
body .hero > .container {
	padding-top: clamp(1rem, 1.7vw, 1.5rem);
}
@media (min-width: 881px) {
	/* Two halves parted by the gap the cards under the hero have between them (the owner, 18. 11.): the photograph
	   then begins exactly where the second column of the cards begins and ends where it ends. It was 5 : 6 with a
	   wide gap, and the photograph's edge stood a few steps off every edge under it. */
	body .hero > .container {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: 1fr auto auto 1fr;
		column-gap: var(--wp--preset--spacing--50, 1.5rem);
	}
	body .hero__lower {
		display: contents;
	}
	body .hero__title {
		grid-column: 1;
		grid-row: 2;
		/* The preset class sets the size with !important (WordPress's rule): the column asks for less than a page. */
		font-size: clamp(2.75rem, 4.4vw, 4.5rem) !important;
		line-height: 1.04;
	}
	body .hero__intro {
		grid-column: 1;
		grid-row: 3;
		margin-top: clamp(1.25rem, 2vw, 1.75rem);
		padding: 0;
	}
	body .hero .hero__sub {
		max-width: 34ch;
	}
	body .hero__note {
		max-width: 26rem;
	}
	body .hero__media-wrap {
		grid-column: 2;
		grid-row: 1 / -1;
	}
	body .hero__media {
		border-radius: var(--radius);
	}
}

/* The announcement: a note on the light blue, its words the deep blue, flat. Pointed at, the surface deepens a
   little. */
body .hero__note {
	min-height: 0;
	margin-top: var(--td-head-gap);
	padding: 1.25rem 3rem 1.25rem 1.5rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--td-brand-soft);
	color: var(--td-brand-deep);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.45;
	transform: none;
	box-shadow: none;
}
body .hero__note-arrow {
	top: 50%;
	right: 1.25rem;
	bottom: auto;
	color: currentColor;
	transform: translateY(-50%);
}
body a.hero__note--link:is(:hover, :focus-visible) {
	transform: none;
	background: #d2e0f7;
	color: var(--td-brand-deep);
	box-shadow: none;
}
@media (max-width: 880px) {
	body .hero__note {
		transform: none;
	}
}

/* The numbers: four in a row on a wide page, two on a narrow one, in the font of the headings, no grid of lines. */
body .stats__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--td-grid);
	border: 0;
}
@media (min-width: 64rem) {
	body .stats__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
body .stats__grid .stats__item {
	padding: 0;
	border: 0;
}
/* The numbers beside the text of a page (Strategický plán): two by two whatever the window, in the column's
   own width (no container of a section around them). */
body .wp-block-column .stats__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: clamp(1.5rem, 3vw, 2.5rem);
}
body .wp-block-column .stats > .container {
	max-width: none;
	padding-inline: 0;
}
body .stats__num {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.5rem, 4.5vw, 3.75rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
body .wp-block-entangle-stats .stats__label {
	max-width: 18ch;
	color: var(--td-ink-soft);
	font-size: 1rem;
	line-height: 1.4;
}

/* The crossroads: white cards on the mist band, the tag in words and in the colour of action, not in capitals.
   (Not the signposts — the cards' style of a name, a sentence and an arrow: they have no box.) */
body .cards:not(.is-style-signposts) .card {
	border: 0;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--td-shadow);
}
body .cards .card__tag {
	color: var(--td-brand);
	/* The preset class of the block sets its size with !important (WordPress's own rule): so must this. */
	font-size: 0.875rem !important;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
body .cards .card__title {
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: -0.015em;
}
body .cards .card__text {
	color: var(--td-ink-soft);
}

/* The vision of the city (Strategický plán): the one element to remember on that page. A photograph in the
   theme's radius, the words on its left side, the sentence large; the four accents as one short
   line above them. The veil is the deep blue laid over the photograph and clearing towards its right side: white
   words stand on it at 7.9:1 where it is solid, and it is nearly solid as far as the words reach. */
body .td-vision {
	--td-vision-veil: var(--td-brand-deep);
	box-shadow: var(--td-shadow);
}
body .td-vision .cover__img {
	object-position: 50% 50%;
}
body .td-vision::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to right, color-mix(in srgb, var(--td-vision-veil) 96%, transparent) 0%, color-mix(in srgb, var(--td-vision-veil) 92%, transparent) 46%, color-mix(in srgb, var(--td-vision-veil) 50%, transparent) 70%, transparent 94%);
}
body .td-vision .cover__content {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
body .td-vision .cover__content > h2 {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}
body .td-vision .cover__content > h2::before {
	content: "";
	display: block;
	width: 4.5rem;
	height: 4px;
	margin-block-end: 1rem;
	border-radius: 2px;
	background: var(--td-accent-ring);
}
body .td-vision .cover__content > h2 + p {
	max-width: 15em;
	margin-block-start: 1rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2rem, 4.3vw, 3.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
}
body .td-vision .cover__content > p + p {
	max-width: 31em;
	margin-block-start: 1.5rem;
	font-size: 1.125rem;
	line-height: 1.55;
}
/* On a phone the words take the whole width: the photograph stands clear above them and sinks into the blue they
   stand on. */
@media (max-width: 781px) {
	body .td-vision {
		background: var(--td-vision-veil);
	}
	body .td-vision .cover__bg {
		bottom: auto;
		height: 20rem;
	}
	body .td-vision .cover__img {
		object-position: 50% 50%;
	}
	body .td-vision::before {
		background: linear-gradient(to bottom, transparent 7rem, var(--td-vision-veil) 16rem);
	}
	body .td-vision .cover__content {
		padding-block-start: 14rem;
	}
}

/* ══ Projects ═════════════════════════════════════════════════════════════ */

/* A card: the photograph in the corners of the page, the title at the size of every other card's. The tags on the
   picture are the plugins' own (their colours follow --color-status-* and the brand). */
body .entangle-projects-card__meta {
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}
body .entangle-projects-card__title {
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
@media (hover: hover) {
	body .entangle-projects-card:hover .entangle-projects-card__title a {
		color: var(--td-brand);
	}
}

/* The page of a project: its facts said in words, not in capitals; the funder's line as quiet as the facts. */
body .entangle-projects-hero__fact dt,
body .entangle-projects-hero__funder-label {
	letter-spacing: 0;
	text-transform: none;
	font-size: 0.875rem;
}
body .entangle-projects-hero__fact dd {
	font-variant-numeric: tabular-nums;
}
body .entangle-projects-hero__title {
	text-wrap: balance;
}
body .entangle-projects-hero__img {
	border-radius: var(--radius);
}
/* Previous and next: two quiet cards, the next one to the right. */
body .entangle-projects-nav__link {
	border: 0;
	border-radius: var(--radius);
	background: var(--td-mist);
}
@media (hover: hover) {
	body .entangle-projects-nav__link:hover {
		background: var(--wp--preset--color--brand-soft, #e3ecfa);
	}
}
body .entangle-projects-nav__direction {
	color: var(--td-ink-soft);
	font-size: 0.875rem;
}

/* What came from the participatory budget stands out among the city's projects: on the card the only chip in the
   colour of action; on the page of a project or a proposal a band in the light blue under its words, with the
   four accents as one thin line along it. */
body .entangle-projects-hero__note--budget {
	max-width: none;
	margin-block-start: 1.25rem;
	padding: 0.875rem 1.125rem 0.875rem 1.375rem;
	border-radius: var(--radius-control, 10px);
	background: linear-gradient(to bottom, var(--td-accent-brand) 0 25%, var(--td-accent-green) 25% 50%, var(--td-accent-red) 50% 75%, var(--td-accent-ink) 75% 100%) left / 4px 100% no-repeat, var(--td-brand-soft);
	color: var(--td-ink);
	line-height: 1.5;
}
body .entangle-projects-hero__note--budget .entangle-projects-hero__note-lead {
	display: block;
	color: var(--td-brand-deep);
}

/* ══ The accents, sparingly ═══════════════════════════════════════════════ */

/* The four accents as a thin line along the top of the header, and of the cards of the editions. */
body .site-header {
	border-block-start: 4px solid transparent;
	border-image: var(--td-accent-ring) 1;
}

/* Each number of the front page carries a short dash in one accent, in the order of the ring. */
body .stats__num::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	margin-block-start: 0.75rem;
	border-radius: 2px;
	background: var(--td-accent-brand);
}
body .stats__item:nth-child(4n + 2) .stats__num::after {
	background: var(--td-accent-green);
}
body .stats__item:nth-child(4n + 3) .stats__num::after {
	background: var(--td-accent-red);
}
body .stats__item:nth-child(4n + 4) .stats__num::after {
	background: var(--td-accent-ink);
}

/* The crossroads: a thin line of one accent along the top of each card, nothing more. */
body .cards:not(.is-style-signposts) .card {
	border-block-start: 3px solid var(--td-accent-brand);
	/* Square where the coloured line runs: a round corner would bend it. */
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
body .cards:not(.is-style-signposts) .card:nth-child(3n + 2) {
	border-block-start-color: var(--td-accent-green);
}
body .cards:not(.is-style-signposts) .card:nth-child(3n + 3) {
	border-block-start-color: var(--td-accent-red);
}

/* The date of an update with a calendar before it: drawn by a mask, so it takes the colour of the date. */
body .entangle-update__date {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
body .entangle-update__date::before {
	content: "";
	flex: none;
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ══ The footer (inc/footer.php) ═══════════════════════════════════════════
   Three parts, one after the other (the owner, 18. 11.: the footer was plain, its columns far apart, and the
   subscription stood on the front page only):

   1. The subscription to the news, on every page: a band in the deep blue of action. The words stand at its start
      and the form under them (the owner, 18. 11.: they stood side by side with the emblem before them); at its end
      an emblem in the manner of the crest — a letter rising out of an envelope, in the crest's colours — stands in
      the middle of the room the words leave. The crest's waves run across the
      band as a quiet pattern, clearing towards the words. The form is Entangle Core's own and is only dressed for
      the band here: white words, a white field, the button in ink.
   2. The site itself on the SAME blue, a shade darker (the owner, 18. 11.: it was the ink, and the footer read as
      two things): a short word about the site and three columns of ways in, each under a small heading — close
      enough to be read as one row.
   3. A strip with the copyright, the personal data and who runs the web.

   The words are the off-white of paper on both grounds (7.6:1 on the band, 9:1 on the darker blue); the hierarchy
   is size and weight, not a paler white, so every line keeps its contrast. */
.site-footer {
	/* The band's blue with a little black in it: the two parts of the footer are one colour in two depths. */
	--td-footer-ground: color-mix(in srgb, var(--td-brand-deep) 84%, #000);
	background: #1e4387; /* for a browser without color-mix() */
	background: var(--td-footer-ground);
	color: var(--td-paper);
}
.td-footer {
	color: var(--td-paper);
}
.td-footer a {
	color: var(--td-paper);
}
.td-footer a:hover {
	color: #fff;
}

/* ── 1. The subscription ── */
.td-footer__subscribe {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--td-brand-deep);
	color: #fff;
}
/* The crest's waves, row under row, as the ground of the band: strongest at its end, gone before they reach the words.
   Hairlines (the owner, 18. 11.: 1px; they were 3px and read as a second motif beside the emblem) — and a little
   less faint than the thick ones were, so a line of one pixel can still be seen. */
.td-footer__subscribe::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='82' height='30' viewBox='0 0 82 30'%3E%3Cpath d='M0 15q10.250-11 20.500 0t20.500 0t20.500 0t20.500 0' fill='none' stroke='%23fff' stroke-opacity='.3' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 82px 30px;
	-webkit-mask-image: linear-gradient(100deg, transparent 0 30%, #000 100%);
	mask-image: linear-gradient(100deg, transparent 0 30%, #000 100%);
}
.td-footer__subscribe-inner {
	--td-subscribe-pad: clamp(2.25rem, 4.5vw, 3.5rem);
	--td-emblem: 4.75rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding-block: var(--td-subscribe-pad);
}
/* On a phone the form needs the whole width, so the emblem is small and shares the row of the heading: both lie in
   the one cell of the grid, the emblem at its upper end, and the heading keeps clear of it (below). */
.td-footer__subscribe-inner > * {
	grid-area: 1 / 1;
}
.td-footer__emblem {
	display: block;
	align-self: start;
	justify-self: end;
	width: var(--td-emblem);
	height: auto;
}
@media (max-width: 47.9375rem) {
	.td-footer .entangle-container .entangle-subscribe__heading {
		display: flex;
		align-items: center;
		/* The height of the emblem (its drawing is 200 × 178), so the words under the heading start under both. */
		min-height: calc(var(--td-emblem) * 0.89);
		padding-inline-end: calc(var(--td-emblem) + 1rem);
	}
}
/* From a tablet the band has two columns: the words with the form, no wider than they read well, and the room that
   is left beside them. The emblem stands in the middle of that room, both ways (the owner, 18. 11.: it stood on the
   lower edge of the band, over the last column of the site's part; it reads better as the second half of the band). */
@media (min-width: 48rem) {
	.td-footer__subscribe-inner {
		--td-emblem: clamp(9rem, 18vw, 13rem);
		--td-emblem-air: clamp(1.25rem, 3vw, 3.5rem);
		/* No gap between the columns: it would count to one side of the emblem only. The least air the emblem needs
		   is part of its own column, the same on both its sides, so its middle is the middle of the room one sees. */
		grid-template-columns: minmax(0, 41rem) minmax(calc(var(--td-emblem) + 2 * var(--td-emblem-air)), 1fr);
		column-gap: 0;
	}
	.td-footer__subscribe-inner > * {
		grid-area: auto;
	}
	.td-footer__emblem {
		grid-area: 1 / 2;
		align-self: center;
		justify-self: center;
	}
}
/* The form of Entangle Core, dressed for the band: no ground of its own, the words white, the field white with ink
   in it, the button in ink (its blue is the band's). */
.td-footer .entangle-container.entangle-subscribe {
	--color-base: #fff;
	--color-primary: var(--td-ink);
	--entangle-surface: transparent;
	--entangle-muted: rgb(255 255 255 / 0.88);
	--entangle-line-strong: rgb(255 255 255 / 0.7);
	width: 100%;
	max-width: none;
	margin: 0;
	color: #fff;
}
/* The words, and the form under them (the plugin sets them side by side on a wide page): one column, no wider than
   a line of the words reads well. */
.td-footer .entangle-subscribe .entangle-subscribe__box {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	max-width: 41rem;
	padding: 0;
	border-radius: 0;
	background: none;
}
.td-footer .entangle-container .entangle-subscribe__subheading {
	max-width: none;
}
.td-footer .entangle-container .entangle-subscribe__heading {
	color: #fff;
	font-weight: 700;
}
.td-footer .entangle-container .entangle-subscribe__email {
	border-color: transparent;
	background: #fff;
	color: var(--td-ink);
}
/* The hint in the field stands on white, not on the band: the soft ink, not the band's white. */
.td-footer .entangle-container .entangle-subscribe__email::placeholder {
	color: var(--td-ink-soft);
}
.td-footer .entangle-container .entangle-subscribe__email:focus {
	border-color: var(--td-ink);
	box-shadow: 0 0 0 3px rgb(255 255 255 / 0.45);
}
.td-footer .entangle-subscribe .entangle-subscribe__consent a,
.td-footer .entangle-subscribe a {
	color: #fff;
}
.td-footer .entangle-container .entangle-subscribe__consent input[type="checkbox"]:checked {
	border-color: #fff;
}
.td-footer .entangle-subscribe .entangle-subscribe__message.is-error {
	color: #ffd9d6;
}
.td-footer .entangle-subscribe .entangle-subscribe__message.is-success {
	color: #c8f3dc;
}
.td-footer .entangle-subscribe :focus-visible {
	outline-color: #fff;
}

/* ── 2. The site ── */
/* One size for all the columns: the size of the text about the site, a step under the page's. */
.td-footer__main {
	display: grid;
	/* On a phone the two lists of pages stand side by side — they are short words — and the word about the site
	   and the contact take the whole width; three columns of ways in from a tablet, all four in a row on a desk. */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 1.5rem;
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
	font-size: 1rem;
	line-height: 1.6;
}
.td-footer__brand,
.td-footer__main > :last-child {
	grid-column: 1 / -1;
}
@media (min-width: 40rem) {
	.td-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.25rem;
	}
	.td-footer__main > :last-child {
		grid-column: auto;
	}
}
@media (min-width: 64rem) {
	.td-footer__main {
		grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
		gap: clamp(2rem, 3.5vw, 3.5rem);
	}
	.td-footer__brand {
		grid-column: auto;
	}
}
.td-footer__about {
	max-width: 44ch;
	margin: 0;
}
/* A link inside the running text: only the line, in the green, tells it from the words around it. */
.td-footer__about a {
	text-decoration: underline;
	text-decoration-color: var(--td-accent-on-ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.td-footer__social {
	display: flex;
	gap: 10px;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}
.td-footer__social-link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid rgb(245 247 250 / 0.55);
	border-radius: 50%;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.td-footer__social-link:hover {
	border-color: currentColor;
}
.td-footer__social-link svg {
	width: 20px;
	height: 20px;
}
.td-footer__heading {
	margin: 0 0 1rem;
	/* The light blue of the footer's small headings: 5.6:1 on the footer's ground. */
	color: #b9d0f7;
	font-family: var(--wp--preset--font-family--sans);
	/* In capitals (the owner, 18. 11.): a step smaller and spaced out, as capitals at this size need. */
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.td-footer__links {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.td-footer__links a {
	font-weight: 500;
	text-decoration: none;
}
.td-footer__links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.td-footer__address {
	margin: 0 0 1rem;
	font-style: normal;
}
.td-footer__label {
	display: inline-block;
	min-width: 3.6em;
	font-weight: 400;
	opacity: 1;
}
.td-footer__reach a {
	font-weight: 600;
}
.td-footer a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 4px;
}

/* ── 3. The strip: a hairline above it — as wide as the words, not as the gutters around them — and the three things
   in one row that wraps. ── */
.td-footer__bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	padding-block: 20px 28px;
	font-size: 0.875rem;
}
.td-footer__bar::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: var(--gutter, 1.25rem);
	border-top: 1px solid rgb(245 247 250 / 0.22);
}
.td-footer__bar p {
	margin: 0;
}
.td-footer__privacy {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.td-footer__credit {
	margin-left: auto !important;
}
.td-footer__credit a {
	font-weight: 700;
	text-decoration: none;
}
.td-footer__credit a:hover {
	text-decoration: underline;
}
@media (max-width: 599px) {
	.td-footer__credit {
		margin-left: 0 !important;
	}
}
.td-footer .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
