/*
Theme Name: RegioUA
Description: Тема сайту RegioUA: профілі гірських громад, ресурси і потенціал, бізнес, туризм, кооперація, партнери. Працює разом із плагіном «RegioUA — платформа». Фірмовий стиль «Топографія»: картографічні композиції з відкритих даних.
Version: 5.0.7
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rozvytok
*/

/*
VOICE   institutional, exact, calm: a Swiss cartographic office working for mountain territories.
IDEA    the site behaves like a survey atlas: every section opens on its own composition drawn from open data.
PICTURE relief models, thematic maps, layer stacks and networks — each section in a different graphic technique.
COLOUR  deep spruce green, graphite, stone neutrals; ochre only for the summit line and the active state.
TYPE    Fixel (MacPaw, Ukrainian), Display for titles, Text for reading; one family, four sizes.
LAYOUT  wide working area (92 rem), title left and composition right, two-column sections with titles in a rail.
*/

/* ---------- Fonts: Fixel by MacPaw (SIL Open Font License), served from the site itself ---------- */
@font-face { font-family: "Fixel Text"; src: url("assets/fonts/FixelText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url("assets/fonts/FixelText-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url("assets/fonts/FixelText-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url("assets/fonts/FixelText-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url("assets/fonts/FixelDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url("assets/fonts/FixelDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--paper: #f4f3ef;
	--white: #ffffff;
	--stone: #e9e7e1;
	--ink: #1d2224;
	--ink-soft: #4f5659;
	--ink-faint: #767d80;
	--line: #dad7cf;
	--line-strong: #b8b4a9;
	--pine: #1e4a39;
	--pine-deep: #143326;
	--pine-2: #2e6b52;
	--meadow: #e2e9e1;
	--moss: #c9d6c8;
	--graphite: #1a1f21;
	--graphite-2: #262d2f;
	--ochre: #b07d2a;
	--ochre-light: #d1aa5e;
	--hero-bg: #f3f2ed;
	--lake: #3c7c8b;
	--lake-wash: #e5eef0;
	--contour: #8a6a2e;
	--focus: #b07d2a;

	--text: "Fixel Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--display: "Fixel Display", "Fixel Text", "Segoe UI", Roboto, Arial, sans-serif;

	--fs-small: .875rem;
	--fs-body: 1.0625rem;
	--fs-lead: 1.25rem;
	--fs-h3: 1.3rem;
	--fs-h2: clamp(1.55rem, 2.1vw, 2rem);
	--fs-h1: clamp(2.3rem, 4vw, 3.5rem);

	--wrap: 92rem;
	--gutter: clamp(1.25rem, 3.6vw, 3.5rem);
	--measure: 44rem;
	--radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rzt-stick, 0px) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: var(--fs-body); line-height: 1.6; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p, ul, ol, dl, blockquote, figure, table { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: .6rem 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-small); }

/* ---------- Header ---------- */
/* The header stays at the top while the page scrolls: on wide screens only the band of the menu remains in view
   (the bar above it moves out by its own height, measured by site.js); on narrow screens the bar with «Меню» stays. */
.site-header { background: var(--white); position: sticky; top: calc(-1 * var(--rzt-bar, 0px)); z-index: 30; }
/* The header is wider than the text below it: the logo, the Swiss mark and the account controls need the room. */
.site-header .wrap { max-width: 116rem; }
/* Sizes of the header follow the width of the screen (they reach the full size at 1920 px), so the logo, the Swiss mark
   and the account controls stay on one line and the name of the association stays in three lines. */
:root { --mark: clamp(3.2rem, 4.5vw, 5.4rem); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 1.7vw, 2rem); padding-top: clamp(1rem, 1.4vw, 1.7rem); padding-bottom: clamp(1rem, 1.4vw, 1.7rem); }
.brand { flex: 0 0 auto; display: flex; gap: clamp(.8rem, 1.35vw, 1.6rem); align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; width: var(--mark, 5.4rem); height: var(--mark, 5.4rem); display: block; }
.brand__name { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 2.5vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.brand__tagline { display: block; font-size: clamp(.82rem, 1.13vw, 1.36rem); line-height: 1.3; color: var(--ink-soft); margin-top: .4em; width: 20.6em; }
/* Swiss association: the flag is exactly the size of the logo. */
.swiss { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(.7rem, .95vw, 1.1rem); margin: 0 auto 0 0; padding-left: clamp(1rem, 1.7vw, 2rem); border-left: 1px solid var(--line); min-height: var(--mark, 5.4rem); }
.swiss__flag { flex: none; width: var(--mark, 5.4rem); height: var(--mark, 5.4rem); display: block; }
.swiss__text { display: flex; flex-direction: column; gap: .35rem; }
.swiss__name { font-family: var(--display); font-weight: 700; font-size: clamp(.9rem, 1.2vw, 1.45rem); line-height: 1.15; color: var(--pine-deep); white-space: nowrap; }
.swiss__place { font-size: clamp(.8rem, 1vw, 1.2rem); color: var(--ink-soft); white-space: nowrap; }
.account { display: flex; gap: clamp(.6rem, 1vw, 1.2rem); align-items: center; flex: none; }
.account .button { min-height: clamp(2.75rem, 3.75vw, 4.5rem); font-size: clamp(.95rem, 1.25vw, 1.5rem); padding: .6em 1.2em; }
.account__login { font-weight: 600; font-size: clamp(.95rem, 1.25vw, 1.5rem); color: var(--ink); text-decoration: none; }
.account__login:hover { color: var(--pine); text-decoration: underline; }

.button, .rzv-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; padding: .65rem 1.45rem; border-radius: var(--radius); border: 1.5px solid var(--pine); background: var(--pine); color: var(--white); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.button:hover, .rzv-button:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--white); text-decoration: none; }
.button--line, .rzv-button--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--line:hover, .rzv-button--quiet:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button--light { background: var(--white); border-color: var(--white); color: var(--pine-deep); }
.button--light:hover { background: var(--meadow); border-color: var(--meadow); color: var(--pine-deep); }

/* Main menu: a band of deep spruce, items large enough to read across the room. */
.nav { background: var(--pine-deep); }
.nav ul { list-style: none; margin: 0 calc(-1 * clamp(.55rem, .6vw, .7rem)); padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
/* French and English labels are longer: the same one-line menu, a step smaller. */
.nav a:lang(fr) { font-size: clamp(1rem, .5rem + .55vw, 1.1rem); }
.nav a:lang(en) { font-size: clamp(1rem, .5rem + .55vw, 1.08rem); }
.nav a { display: block; padding: 1.25rem clamp(.55rem, .6vw, .7rem) 1.1rem; color: #e8ece6; text-decoration: none; font-weight: 600; font-size: clamp(1.04rem, .5rem + .62vw, 1.24rem); letter-spacing: .005em; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .45); }
/* The open section: a lighter tab of spruce, so the reader sees at once where they are. */
.nav .current-menu-item > a, .nav .current_page_item > a, .nav a[aria-current] { color: var(--white); background: var(--pine-2); border-color: var(--ochre-light); }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); min-height: 2.75rem; padding: .45rem 1rem; color: var(--ink); cursor: pointer; }
.nav .nav__account { display: none; }

@media (max-width: 1320px) {
	.nav ul { flex-wrap: nowrap; }
	.nav a, .nav a:lang(fr), .nav a:lang(en) { white-space: nowrap; font-size: min(1.4vw, .97rem); padding-left: min(.42vw, .6rem); padding-right: min(.42vw, .6rem); }
}
@media (max-width: 1120px) {
	:root { --mark: 3.4rem; }
	.brand__name { font-size: 1.9rem; }
	.brand__tagline { font-size: .85rem; }
	.swiss { padding-left: .9rem; }
	.swiss { flex: 0 1 auto; min-width: 0; }
	.swiss__text { min-width: 7.2rem; }
	.swiss__name, .swiss__place { white-space: normal; }
	.swiss__name { font-size: clamp(.72rem, 1.3vw, .95rem); }
	.swiss__place { font-size: clamp(.68rem, 1.1vw, .85rem); }
	.account .button, .account__login { font-size: .95rem; }
}
@media (max-width: 900px) {
	.brand__tagline { display: none; }
	.account .button, .account__login { font-size: .82rem; }
	.account .button { padding-left: .7rem; padding-right: .7rem; }
	.langs a { padding-left: .3rem; padding-right: .3rem; }
}
@media (max-width: 800px) {
	:root { --mark: 2.8rem; }
	.brand__name { font-size: 1.45rem; }
	.brand { gap: .6rem; }
	.swiss { padding-left: .6rem; gap: .5rem; }
	.account { gap: .4rem; }
	.langs a { font-size: .85rem; }
	.account .button, .account__login { font-size: .76rem; }
	.site-header__bar { gap: .7rem; }
}
@media (max-width: 720px) {
	.brand__name { font-size: 1.25rem; }
	.swiss__text { min-width: 6rem; }
	.swiss__name { font-size: .7rem; }
	.swiss__place { font-size: .66rem; }
	.langs a { font-size: .8rem; padding-left: .2rem; padding-right: .2rem; }
}
@media (max-width: 640px) {
	.account .button, .account__login { display: none; }
	.swiss__text { display: none; }
	.nav-toggle { display: inline-block; }
	.nav { display: none; }
	.nav.is-open { display: block; max-height: calc(100vh - var(--rzt-stick, 0px)); overflow-y: auto; }
	.nav ul { flex-direction: column; padding: .4rem 0 1rem; }
	.nav ul { margin: 0; }
	.nav a { border-bottom: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid transparent; padding: .85rem .8rem; }
	.nav .current-menu-item > a, .nav a[aria-current] { border-left-color: var(--ochre-light); border-bottom-color: rgba(255, 255, 255, .12); }
	.nav .nav__account { display: block; }
	.brand { flex: 1 1 auto; gap: .7rem; }
	:root { --mark: 2.6rem; }
	.brand__name { font-size: 1.45rem; }
	.swiss { padding-left: .7rem; }
	.brand__tagline { display: none; }
	.account .langs { display: none; }
	.langs--nav { display: flex; gap: .4rem; margin: 0 0 1rem; padding: .4rem .8rem 0; }
	.langs--nav a { color: #e8ece6; font-size: 1rem; }
	.site-header__bar { gap: .8rem; }
}

/* ---------- Language switch ---------- */
.langs { display: flex; gap: .1rem; }
.langs a { font-size: clamp(.95rem, 1.12vw, 1.35rem); font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: .45rem .55rem; border-radius: var(--radius); }
.langs a:hover { color: var(--ink); background: var(--stone); }
.langs a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.langs--nav { display: none; }

/* ---------- Home: the relief model ---------- */
.hero { position: relative; background: var(--hero-bg); color: var(--ink); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding-top: clamp(2.2rem, 4.5vw, 4rem); padding-bottom: 0; }
.hero__text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; }
.hero__title { font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: 1.03; letter-spacing: -.03em; color: #1d2a26; margin: 0; }
.hero__lead { color: #4b5551; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; margin: 0 0 .35rem; padding-left: 1.2rem; border-left: 2px solid var(--ochre); }
.hero__media { position: relative; margin-top: clamp(-1rem, -1vw, 0rem); }
.hero__media img { display: block; width: 100%; height: auto; max-height: 48rem; object-fit: cover; object-position: 40% 60%; }
.hero__media::before { content: ""; position: absolute; inset: 0 0 auto; height: 22%; background: linear-gradient(180deg, var(--hero-bg), rgba(243, 242, 237, 0)); pointer-events: none; }
.hero__cap { position: relative; margin: 0 auto; padding-top: .9rem; padding-bottom: 1.2rem; font-size: .84rem; line-height: 1.5; color: #5d6662; }
.hero__cap span { color: #8b928e; }
@media (max-width: 860px) { .hero__text { grid-template-columns: minmax(0, 1fr); } .hero__media img { aspect-ratio: 2367 / 888; } }

.figures { background: var(--white); border-bottom: 1px solid var(--line); }
.figures__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figures__list li { display: flex; align-items: baseline; gap: .9rem; padding: 1.6rem 0; }
.figures__list li + li { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 2.5rem); }
.figures__list strong { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: .9; letter-spacing: -.03em; color: var(--pine); }
.figures__list span { color: var(--ink-soft); line-height: 1.3; font-size: 1.05rem; }
@media (max-width: 640px) { .figures__list { grid-template-columns: minmax(0, 1fr); } .figures__list li { padding: 1rem 0; } .figures__list li + li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* Sections of the platform: each tile carries a crop of its section's composition. */
.home-sections { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5.5rem); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.tile { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.tile:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tile__img { display: block; aspect-ratio: 900 / 560; overflow: hidden; background: var(--stone); border-bottom: 1px solid var(--line); }
.tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__img img { transform: scale(1.025); }
.tile__body { display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.35rem 1.35rem; }
.tile__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.1; letter-spacing: -.015em; }
.tile__full { color: var(--ink-soft); font-size: .98rem; line-height: 1.4; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Head of a page: title left, the section's composition right ---------- */
.shead { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(2rem, 4.5vw, 3.6rem) 0 clamp(1.6rem, 3.5vw, 2.6rem); }
.shead h1 { margin-bottom: .35em; }
.shead__lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); max-width: 40rem; margin: 0 0 1rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.shead--fig .shead__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.shead--fig h1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); }
.shead__fig { min-width: 0; }
/* One frame for every section: the same size on each page, the composition fitted inside it. */
.shead__fig .graphic { margin: 0; aspect-ratio: 10 / 7; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f4f3ef; }
.shead__fig .graphic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shead__fig .graphic--resources { background: #f7f6f2; }
.shead__fig .graphic--invest, .shead__fig .graphic--coop { background: #ecebe6; }
.shead__fig .graphic--business { background: #f3f2ee; }
.shead__fig .graphic--tourism img { object-fit: cover; object-position: center bottom; }
.shead__fig--map .hromady-map { margin: 0; max-width: none; }
.shead__fig--map .hromady-map > :first-child { aspect-ratio: 10 / 7; background: #f4f3ef; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shead__fig--map .hromady-map > :first-child svg { width: 100%; height: 100%; display: block; }
.shead__fig--map .map-legend { margin-top: .6rem; }
.shead__src { margin: .6rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--ink-faint); }
@media (max-width: 900px) { .shead--fig .shead__grid { grid-template-columns: minmax(0, 1fr); } }

.graphic { margin: 0; }
.graphic img { display: block; width: 100%; height: auto; background: var(--paper); }
.graphic figcaption { margin-top: .7rem; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); max-width: 60rem; }
.graphic__kind { font-weight: 600; color: var(--ink); }
.graphic__src { color: var(--ink-faint); }
.graphic--tourism img, .graphic--invest img { border: 1px solid var(--line); }

/* Legend of a composition. */

/* ---------- Sections ---------- */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--white); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.8rem; }
.section__head h2 { margin: 0; }
.section__head p { margin: .4rem 0 0; color: var(--ink-soft); max-width: 40rem; }
.section__more { font-weight: 600; white-space: nowrap; }

/* Lists of materials: rows, not boxes */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.4rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.row:first-child { border-top: 1px solid var(--line); }
.row--noimg { grid-template-columns: minmax(0, 1fr); }
.row__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row__kind { font-size: var(--fs-small); font-weight: 600; color: var(--pine-2); margin: 0 0 .25rem; }
.row__kind a { color: inherit; text-decoration: none; }
.row h3 { font-size: var(--fs-h3); margin: 0 0 .35rem; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--pine); text-decoration: underline; }
.row__excerpt { margin: 0 0 .4rem; color: var(--ink-soft); }
.row__meta { margin: 0; font-size: var(--fs-small); color: var(--ink-faint); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.empty { padding: 1.1rem 1.3rem; background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-soft); margin: 0; }
.empty p:last-child { margin-bottom: 0; }

/* ---------- Archive ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.page-head h1 { margin-bottom: .3rem; }
.page-head p { color: var(--ink-soft); max-width: 44rem; margin: 0; font-size: var(--fs-lead); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.8rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .35rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); font-size: .95rem; font-weight: 500; line-height: 1.2; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filters select, .searchform input, .picker__search input { font: inherit; font-size: 1rem; min-height: 3rem; padding: .55rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.filters select:focus, .searchform input:focus, .picker__search input:focus { border-color: var(--ink); outline: 3px solid rgba(176, 125, 42, .35); outline-offset: 0; }
.pagination { margin: 2rem 0; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-width: 2.75rem; min-height: 2.75rem; justify-content: center; padding: .3rem .8rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; background: var(--white); color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Single ---------- */
.article { padding: clamp(2rem, 5vw, 3.5rem) 0 3rem; }
.article__grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 20rem); gap: clamp(2rem, 6vw, 6rem); }
.article__kind { font-weight: 600; color: var(--pine-2); margin-bottom: .5rem; }
.article__kind a { color: inherit; text-decoration: none; }
.article h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.article__lede { font-size: var(--fs-lead); color: var(--ink-soft); }
.article__byline { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: var(--fs-small); color: var(--ink-soft); padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }
.article__cover { margin: 0 0 1.8rem; }
.article__cover img { display: block; width: 100%; }
.article__body { font-size: var(--fs-body); }
.article__body > * { max-width: var(--measure); }
.article__body h2 { font-size: 1.6rem; margin-top: 2em; }
.article__body h3 { font-size: var(--fs-h3); margin-top: 1.6em; }
.article__body blockquote, .wp-block-quote { border-left: 2px solid var(--ink); padding-left: 1.2rem; margin-left: 0; font-family: var(--display); font-size: var(--fs-h3); line-height: 1.4; }
.article__body table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.article__body th, .article__body td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; text-align: left; vertical-align: top; }
.article__body figcaption, .wp-element-caption { font-size: var(--fs-small); color: var(--ink-soft); }
.article__body .sources { font-size: var(--fs-small); color: var(--ink-soft); }
.article__body .sources li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.facts { margin: 0 0 1.5rem; }
.facts div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-small); color: var(--ink-faint); }
.facts dd { margin: 0; font-weight: 500; white-space: pre-line; }
.aside-box { background: var(--white); border: 1px solid var(--line); padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; }
.aside-box h2 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.aside-box p:last-child { margin-bottom: 0; }
.person { border-left: 2px solid var(--ink); padding: .2rem 0 .2rem 1rem; margin-bottom: 1.8rem; }
.person__name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 0; }
.person__role { margin: 0; color: var(--ink-soft); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.8rem; background: var(--ink); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .6rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.file-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.wp-block-embed__wrapper { position: relative; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-gallery { gap: .6rem; }
.alignwide { max-width: none; }

/* Page */
.page-body { padding: clamp(1.8rem, 4vw, 3rem) 0 3.5rem; }
.page-body > * { max-width: var(--measure); }
.page-body > .rzv-cabinet, .page-body > .picker, .article__body > .picker, .page-body > .rows, .page-body > .block, .page-body > .filters, .page-body > .findings, .page-body > .partners, .page-body > .sd, .page-body > .cta, .page-body > .rzv-form { max-width: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #b9c1bc; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 .35rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem 3rem; padding-top: 2.8rem; padding-bottom: 2.2rem; font-size: .95rem; }
.site-footer__brand { max-width: 38rem; }
.site-footer__logo { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.05; letter-spacing: -.02em; color: var(--white); margin-bottom: .5rem !important; }
.site-footer__note { color: #8f9893; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__data { color: #8f9893; flex-basis: 100%; order: 9; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0 auto; padding-top: 1.1rem; padding-bottom: 1.3rem; font-size: .9rem; }
@media (max-width: 700px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Participant page ---------- */
.org__head { background: var(--white); border-bottom: 1px solid var(--line); }
.org__head--hromada::before, .hview__head::before { content: ""; display: block; height: clamp(5.5rem, 10vw, 8.5rem); background: var(--stone) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.org__head--hromada::before { background-image: url("assets/graphics/tile-hromady.jpg"); background-position: center 60%; }
.org__head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: center; padding-top: clamp(1.6rem, 3.5vw, 2.6rem); padding-bottom: 1.8rem; }
.crumbs { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--ink-soft); }
.org__kind { font-weight: 600; color: var(--pine-2); margin: 0 0 .3rem; }
.org__head h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: .45rem; max-width: 22em; }
.org__check { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--pine); display: inline-flex; align-items: center; gap: .4rem; }
.org__check::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; background: var(--pine) no-repeat center / .62rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E"); }
.org__photo img { display: block; width: 9rem; height: 9rem; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.org__nav { border-top: 1px solid var(--line); overflow-x: auto; }
.org__nav .wrap { display: flex; gap: 1.4rem; white-space: nowrap; }
.org__nav a { display: block; padding: .8rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.org__nav a:hover { border-color: var(--line-strong); }
.org__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 5vw, 5rem); padding-top: 2.4rem; padding-bottom: 3.5rem; }
.org__section { margin-bottom: 3rem; scroll-margin-top: 1rem; }
.org__section > h2 { font-size: 1.6rem; padding-bottom: .55rem; margin-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.org__section .rows .row:first-child { border-top: 0; }
.org__more { margin: .8rem 0 0; font-weight: 600; font-size: var(--fs-small); }
.org__aside .facts dd { overflow-wrap: anywhere; }
.org__minimap { width: min(24rem, 100%); }
.org__note { font-size: var(--fs-small); color: var(--ink-soft); max-width: 36rem; margin: 0; }
.tr-note { font-size: var(--fs-small); color: var(--ink-soft); background: var(--lake-wash); border-left: 2px solid var(--lake); padding: .55rem .85rem; margin: 0 0 1.2rem; }
.tr-note a { white-space: nowrap; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .7rem; }
.spacer { height: 3rem; }
.h3 { font-size: 1.5rem; font-weight: 600; }
.facts--wide { max-width: 40rem; }
.facts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); column-gap: 1.8rem; }
@media (max-width: 640px) { .org__head-grid { grid-template-columns: minmax(0, 1fr); } .org__minimap { width: 100%; } .org__photo { order: -1; } }

.members { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.members__aside .button { width: 100%; }
.rows--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); }
.rows--two .row:nth-child(2) { border-top: 1px solid var(--line); }
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.4rem; }
.tally div { border-top: 2px solid var(--ink); padding-top: .5rem; }
.tally dt { font-size: var(--fs-small); color: var(--ink-soft); }
.tally dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1.1; color: var(--pine); }

/* Photo and video */
.albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.8rem 1.4rem; }
.albums--small { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.album a { text-decoration: none; color: var(--ink); display: block; }
.album__img { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--stone) url("assets/graphics/tile-tourism.jpg") center / cover; overflow: hidden; margin-bottom: .6rem; }
.album__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album__play { position: absolute; left: .8rem; bottom: .8rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(20, 51, 38, .9); }
.album__play::after { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .45rem 0 .45rem .75rem; border-color: transparent transparent transparent var(--white); }
.album__title { display: block; font-weight: 600; line-height: 1.3; }
.album a:hover .album__title { color: var(--pine); text-decoration: underline; }
.album__who { display: block; font-size: var(--fs-small); color: var(--ink-soft); margin-top: .2rem; }
.gallery-grid--album { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }

/* ---------- Map of the hromadas: SVG with relief shading, no tiles ---------- */
.rzv-map { display: block; width: 100%; height: auto; background: #ecebe6; }
.rzv-map__state { fill: #ecebe6; stroke: #d0ccc2; stroke-width: 1; }
.rzv-map__ua { fill: #f7f6f2; }
.rzv-map__obl { fill: #f7f6f2; }
.rzv-map__obl.is-own { fill: #fbfaf8; }
.rzv-map__edges use { fill: none; stroke: #a7a297; stroke-width: 1; stroke-dasharray: 5 3; pointer-events: none; }
.rzv-map__relief { mix-blend-mode: multiply; opacity: .85; pointer-events: none; }
.rzv-map__border { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; pointer-events: none; }
.rzv-map__labels { pointer-events: none; font-family: var(--text); }
.rzv-map__country { font-size: 15px; letter-spacing: .2em; fill: #8b8d85; }
.rzv-map__city { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.rzv-map__city-name { font-size: 15px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fbfaf8; stroke-width: 3.5px; stroke-linejoin: round; }
.rzv-map__obl-name { font-size: 12px; fill: var(--ink-soft); paint-order: stroke; stroke: #fbfaf8; stroke-width: 3px; stroke-linejoin: round; }
.rzv-map__h { fill: #b9cdbd; stroke: #fbfaf8; stroke-width: .8; transition: fill .12s; }
.rzv-map__h.is-active { fill: var(--pine-2); }
.rzv-map__h.is-focus { fill: var(--ochre); }
.rzv-map a:hover .rzv-map__h, .rzv-map a:focus .rzv-map__h, .rzv-map a.is-hover .rzv-map__h { fill: var(--pine-deep); }
.rzv-map a:focus { outline: none; }
.rzv-map a:focus-visible .rzv-map__h { stroke: var(--ochre); stroke-width: 3; }
.rzv-map__pin { fill: var(--white); stroke: var(--ink); stroke-width: 2.5; }
.page-body > .hromady-map, .hromady-map { margin: 0 auto 1.6rem; max-width: 39rem; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; font-size: .9rem; color: var(--ink-soft); margin: .75rem 0 0; }
.map-legend span { display: inline-block; width: 1rem; height: 1rem; margin-right: -1rem; vertical-align: -.15rem; }
.map-legend__h { background: #b9cdbd; }
.map-legend__a { background: var(--pine-2); }
.map-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--ink); color: var(--white); font-size: .88rem; font-weight: 600; padding: .35rem .6rem; border-radius: var(--radius); white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.map-tip[hidden] { display: none; }

/* Small map of one hromada on the relief. */
.rzv-loc { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #ecebe6; }
.rzv-loc__bg { fill: #ecebe6; }
.rzv-loc__ua { fill: #f7f6f2; }
.rzv-loc__n { fill: #d4e0d6; stroke: #fbfaf8; stroke-width: .9; }
.rzv-loc__h { fill: var(--pine-2); stroke: var(--pine-deep); stroke-width: 1.4; }
.rzv-loc__relief { mix-blend-mode: multiply; opacity: .72; }
.rzv-loc__border { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.rzv-loc__link { fill: none; stroke: var(--ochre); stroke-linecap: round; opacity: .9; }
.rzv-loc__partner { fill: var(--white); stroke: var(--ink); }
.rzv-loc__pin { fill: var(--ochre); stroke: var(--white); }

/* ---------- Blocks inside section pages ---------- */
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.block { padding: 2.2rem 0 .8rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.page-body > .block:first-of-type, .filters + .block { border-top: 0; padding-top: .4rem; }
.block > h2 { font-size: 1.6rem; }
.block__lead { color: var(--ink-soft); max-width: 44rem; margin-top: -.2rem; }
.cta { margin: 2rem 0 0; }
.h4 { font-size: 1.12rem; font-weight: 600; margin-top: 1.6rem; }
.source { font-size: .86rem; line-height: 1.5; color: var(--ink-faint); max-width: 48rem; }

/* Hromadas by raion */
.raion { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin: 1.4rem 0 .4rem; }
.hlist { list-style: none; padding: 0; margin: 0 0 .6rem; columns: 3 16rem; column-gap: 2.2rem; }
.hlist li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.hlist a { font-weight: 600; text-decoration: none; color: var(--ink); }
.hlist a:hover { color: var(--pine); text-decoration: underline; }

/* Resources: category → hromadas */
.res { margin: 0; }
.res > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .2rem 1.5rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.res dt { font-weight: 600; }
.res dd { margin: 0; color: var(--ink-soft); }
.res > div:last-child { border-bottom: 0; }

/* Results of the analysis */
.findings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; }
.finding { --k: var(--pine); position: relative; background: var(--white); border: 1px solid var(--line); padding: 1.25rem 1.35rem 1.35rem; }
.finding--invest { --k: var(--lake); }
.finding--weak { --k: var(--contour); }
.finding__kind { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-small); font-weight: 600; color: var(--k); margin: 0 0 .45rem; }
.finding__kind::before { content: ""; width: .55rem; height: .55rem; background: var(--k); flex: none; }
.finding h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.finding h3 a { color: var(--ink); text-decoration: none; }
.finding h3 a:hover { color: var(--k); text-decoration: underline; }
.finding__line { font-size: .95rem; margin: 0 0 .4rem; }
.finding__where { font-size: var(--fs-small); color: var(--ink-faint); margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.article--finding { --k: var(--pine); }
.article--finding.finding--invest { --k: var(--lake); }
.article--finding.finding--weak { --k: var(--contour); }
.article--finding .article__kind { color: var(--k); }
.article--finding .article__kind a { color: inherit; }
.finding__parts { margin: 0 0 2rem; }
.finding__part { padding: 1.3rem 0 .4rem; border-top: 1px solid var(--line); }
.finding__part h2 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.finding__part ul { padding-left: 1.2rem; }
.finding__part li { margin-bottom: .7rem; }

/* Supply and demand */
.sd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 1rem; }
.sd h3 { font-size: var(--fs-h3); margin-bottom: .2rem; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 2.4rem; gap: .8rem; align-items: center; padding: .32rem 0; font-size: .95rem; }
.bars__bar { display: block; height: .7rem; width: var(--w); min-width: 2px; background: var(--pine); }
.sd > div + div .bars__bar { background: var(--lake); }
.bars__n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

/* Participants and profile entries */
.plist, .entries { list-style: none; margin: 0; padding: 0; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.plist li { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.15rem 1.1rem; background: var(--white); border: 1px solid var(--line); }
.plist a { font-weight: 700; font-family: var(--display); font-size: 1.12rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
.plist a:hover { color: var(--pine); text-decoration: underline; }
.plist__kind { font-size: var(--fs-small); color: var(--pine-2); font-weight: 600; order: -1; }
.plist__what { font-size: .92rem; color: var(--ink-soft); }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 1.6rem; }
.entries li { padding: .8rem 0; border-top: 2px solid var(--ink); }
.entries__label { display: block; font-weight: 700; }
.entries__note { display: block; color: var(--ink-soft); font-size: .95rem; white-space: pre-line; margin-top: .2rem; }
.tags .chip { cursor: default; }

/* Partners */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.3rem; }
.partners li { border-top: 2px solid var(--ink); padding-top: .8rem; }
.partners a { display: block; text-decoration: none; color: var(--ink); }
.partners img { display: block; max-height: 3.5rem; width: auto; margin-bottom: .5rem; }

/* Search */
.searchform { display: flex; gap: .5rem; max-width: 34rem; margin: 0 0 1.5rem; }
.searchform input { flex: 1; }

/* ---------- Choice of a hromada: map and list side by side ---------- */
.picker { margin-top: .5rem; }
.picker > h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.picker__lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 48rem; margin: 0 0 1.4rem; }
.picker__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.picker__map { position: relative; min-width: 0; }
.picker__list { min-width: 0; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; max-height: min(52rem, 88vh); }
.picker__search { margin: 0; padding: 1rem 1rem .9rem; border-bottom: 1px solid var(--line); }
.picker__search input { width: 100%; }
.picker__list .picker__obls { overflow-y: auto; padding: .3rem 1.1rem 1.2rem; display: block; }
.picker__obls { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem 2rem; margin-top: 1rem; align-items: start; }
.picker__obl h3 { font-size: 1.15rem; margin: 1rem 0 .3rem; padding-bottom: .35rem; border-bottom: 2px solid var(--ink); }
.picker__list .picker__obl h3 { position: sticky; top: 0; background: var(--white); padding-top: .5rem; z-index: 1; }
.picker__raion h4 { font-family: var(--text); font-size: var(--fs-small); font-weight: 600; color: var(--ink-faint); margin: .9rem 0 .25rem; }
.picker__raion ul { list-style: none; margin: 0; padding: 0; }
.picker__raion li { font-size: .98rem; line-height: 1.35; }
.picker__raion a { display: block; padding: .32rem .45rem; margin: 0 -.45rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.picker__raion a:hover, .picker__raion li.is-hover a { background: var(--meadow); color: var(--pine-deep); }
.picker__raion li.has a { color: var(--pine); font-weight: 700; }
.picker__raion li.has a::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .5rem; background: var(--pine-2); vertical-align: middle; }
.picker__raion li.is-current a { background: var(--ink); color: var(--white); font-weight: 700; }
.picker__raion li.is-current a::before { content: none; }
@media (max-width: 980px) { .picker__grid { grid-template-columns: minmax(0, 1fr); } .picker__list { max-height: 34rem; } }

/* ---------- A section for one hromada ---------- */
.hsections { border-top: 1px solid var(--line); background: var(--paper); }
.hsections .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .9rem; padding-bottom: 1rem; }
.hsections__label { font-size: var(--fs-small); color: var(--ink-soft); margin-right: .6rem; }
.hsections a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .35rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none; background: var(--white); }
.hsections a:hover, .hsections a:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--white); }

.hview__head { background: var(--white); border-bottom: 1px solid var(--line); }
.hview__head--resources::before { background-image: url("assets/graphics/tile-resources.jpg"); background-position: center 70%; }
.hview__head--business::before { background-image: url("assets/graphics/tile-business.jpg"); background-position: center 40%; }
.hview__head--invest::before { background-image: url("assets/graphics/tile-invest.jpg"); background-position: center 45%; }
.hview__head--tourism::before { background-image: url("assets/graphics/tile-tourism.jpg"); background-position: center 30%; }
.hview__head--coop::before { background-image: url("assets/graphics/tile-coop.jpg"); background-position: center 45%; }
.hview__head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 1.5rem 3rem; align-items: end; padding-top: clamp(1.4rem, 3vw, 2.4rem); padding-bottom: 1.2rem; }
.hview__section { display: inline-block; font-size: .98rem; font-weight: 700; color: var(--white); background: var(--pine); padding: .3rem .7rem; margin-bottom: .7rem; }
.hview__head h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: .45rem; }
.hview__about { margin-bottom: 0; }
.hview__about a { font-weight: 600; }
.hview__loc { min-width: 0; }
.hview__body { padding-top: 1rem; padding-bottom: 3.5rem; }
.hswitch { margin: .2rem 0 1.4rem; }
.hswitch > summary { display: inline-flex; align-items: center; gap: .7rem; min-height: 3rem; cursor: pointer; padding: .55rem 1.2rem; border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); font-weight: 600; list-style: none; background: var(--white); }
.hswitch > summary:hover { background: var(--ink); color: var(--white); }
.hswitch > summary::-webkit-details-marker { display: none; }
.hswitch > summary::after { content: ""; display: inline-block; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2rem) rotate(45deg); }
.hswitch[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }
.hswitch__body { margin-top: 1rem; padding: 1.2rem 1.4rem; background: var(--paper); border: 1px solid var(--line); }
.hswitch__body .picker__obls { margin-top: .5rem; }
@media (max-width: 760px) { .hview__head-grid { grid-template-columns: minmax(0, 1fr); } .hview__loc { max-width: 24rem; } }

/* Each block: title and lead in a rail on the left, content on the right. */
.hblock { padding: 2.4rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.hview__body > .hblock:first-child, .hview__body > .block__lead + .hblock { border-top: 0; }
.hblock > h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.hblock__lead { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; max-width: 46rem; }
.hblock h3.h4 { margin-top: 1.4rem; }
@media (min-width: 1000px) {
	.hblock { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
	.hblock > h2, .hblock > .hblock__lead { grid-column: 1; }
	.hblock > h2 { position: sticky; top: calc(var(--rzt-stick, 0px) + 1rem); }
	.hblock > .hblock__body { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }
}
.hview__body > .block__lead { font-size: var(--fs-lead); color: var(--ink); max-width: 46rem; margin: 1.6rem 0 .4rem; padding-left: 1rem; border-left: 2px solid var(--pine); }

/* Resources: elevation figures and altitudinal belts. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0; margin: 0 0 1.6rem; border-top: 2px solid var(--ink); }
.stats div { padding: .9rem 1.2rem .9rem 0; }
.stats div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.stats dt { font-size: var(--fs-small); color: var(--ink-faint); }
.stats dd { margin: .15rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; color: var(--pine); font-variant-numeric: tabular-nums; }
.stats dd small { font-size: .45em; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.belts { margin: 0 0 .6rem; }
.belts__title { font-weight: 600; margin: 0 0 .55rem; }
.belts__bar { display: flex; height: 2.2rem; border: 1px solid var(--line); }
.belts__b { display: block; min-width: 3px; }
.belts__b--0 { background: #c9d2c2; }
.belts__b--1 { background: #93ae96; }
.belts__b--2 { background: #5e8670; }
.belts__b--3 { background: #2f5a48; }
.belts__keys { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-size: .92rem; color: var(--ink-soft); }
.belts__keys li { display: flex; align-items: center; gap: .5rem; }
.belts__keys b { color: var(--ink); font-variant-numeric: tabular-nums; }
.belts__sw { display: inline-block; width: .95rem; height: .95rem; }

/* Business: supply beside demand; products and offers as cards. */
.sd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.sd-grid > .hblock { display: block; border-top: 0; }
.sd-grid > .hblock > h2 { position: static; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.sd-grid .plist { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 800px) { .sd-grid { grid-template-columns: minmax(0, 1fr); } }
.hview .rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; }
.hview .row, .hview .row:first-child { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); background: var(--white); }
.hview .row__img img { aspect-ratio: 16 / 10; }
.hview .row > div:last-child { padding: 1rem 1.15rem 1.2rem; }
.hview .row h3 { font-size: 1.15rem; }

/* Cooperation: partner links beside the map. */
.links-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.links-grid > div > .h4:first-child { margin-top: 0; }
.netmap { margin: 0; }
.netmap figcaption { font-size: .84rem; color: var(--ink-faint); margin-top: .5rem; line-height: 1.45; }
@media (max-width: 1100px) { .links-grid { grid-template-columns: minmax(0, 1fr); } }
.links-inline { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.links-inline li { display: inline-flex; align-items: center; min-height: 2.4rem; padding: .3rem .85rem; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-size: .95rem; }
.links-inline li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.links-inline li:hover { border-color: var(--ink); }
.links-list { margin: 0 0 1rem; padding-left: 1.1rem; }
.links-list li { margin-bottom: .35rem; }

/* Development projects: each direction set apart. */
.hview .hblock[id^="dir-"] > h2 { padding-top: .8rem; border-top: 3px solid var(--pine); }
.hview .hblock[id^="dir-"] .empty { background: var(--white); }

/* Tables: Swiss, ruled, figures aligned. */
.table { width: 100%; border-collapse: collapse; margin-bottom: .9rem; font-size: .97rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--line); }
.table thead th { font-size: var(--fs-small); color: var(--ink-faint); font-weight: 600; border-bottom: 2px solid var(--ink); }
.table--ind { border-top: 2px solid var(--ink); }
.table--ind th { font-weight: 400; color: var(--ink-soft); width: 62%; }
.table--ind td { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.settlements { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.settlements li.is-center { font-weight: 700; }
.settlements__pop, .facts__date { color: var(--ink-faint); font-weight: 400; }
.contacts .facts dd { overflow-wrap: anywhere; }
.proposal .rzv-form { max-width: 40rem; }
@media (max-width: 40rem) { .table { font-size: .9rem; } .table th, .table td { padding: .5rem .5rem .5rem 0; } }

/* Forms of the platform follow the same controls. */
.rzv-form input[type=text], .rzv-form input[type=email], .rzv-form input[type=password], .rzv-form input[type=url], .rzv-form input[type=tel], .rzv-form input[type=date], .rzv-form select, .rzv-form textarea { border-radius: var(--radius); border: 1.5px solid var(--line-strong); min-height: 3rem; }
.rzv-form input:focus, .rzv-form select:focus, .rzv-form textarea:focus { border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.two-col, .article__grid, .org__grid, .members, .sd { grid-template-columns: minmax(0, 1fr); }
	.res > div { grid-template-columns: minmax(0, 1fr); }
	.rows--two { grid-template-columns: minmax(0, 1fr); }
	.rows--two .row:nth-child(2) { border-top: 0; }
}
@media (max-width: 560px) {
	.bars li { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) 2rem; }
	.row { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; }
	.row--noimg { grid-template-columns: minmax(0, 1fr); }
	.row h3 { font-size: 1.05rem; }
	.row__excerpt { display: none; }
	.stats div + div { padding-left: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .tile, .tile__img img, .rzv-map__h, .button { transition: none; } .tile:hover .tile__img img { transform: none; } }
@media print {
	.site-header, .site-footer, .org__nav, .aside-box, #rzv-report, .hswitch, .hsections { display: none; }
	body { background: #fff; }
}

/* Static preview: the pages of a section for every hromada in one file, shown by address (#h-…). */
.hpack > .hview { display: none; }
.hpack > .hview:target { display: block; }
.hpack > .opack { display: none; }
.hpack > .opack:target { display: block; }
body:has(.hpack > .opack:target) .hpack-picker { display: none; }
body:has(.hpack > .hview:target) .hpack-picker { display: none; }

/* «Про асоціацію»: the association's text, justified like the descriptions of the sections. */
.page-body--about p, .page-body--about li, .page-body--rules p, .page-body--rules li, .page-body--privacy p, .page-body--privacy li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.page-body--about h3 { color: var(--pine); }
.about-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.about-list li { padding: .8rem 0; border-top: 1px solid var(--line); }
.about-list li:last-child { border-bottom: 1px solid var(--line); }
.about-list strong { color: var(--ink); }
.about-motto { font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; color: var(--pine); margin-top: 2.2rem; text-align: left !important; }

/* Content pages with a second column: About (summary of the association) and the legal texts (contents).
   The text takes the left column, wider than the reading measure of other pages; the summary or contents
   stand on the right, level with the text, and stay in view while the reader scrolls. */
.page-body--about, .page-body--rules, .page-body--privacy { display: grid; grid-template-columns: minmax(0, 53rem) minmax(15rem, 24rem); justify-content: space-between; column-gap: clamp(3rem, 6vw, 7rem); align-items: start; font-size: 1.125rem; line-height: 1.65; }
.page-body--about > *, .page-body--rules > *, .page-body--privacy > * { grid-column: 1; max-width: none; }
.page-body--about > :nth-child(2), .page-body--rules > :nth-child(2), .page-body--privacy > :nth-child(2) { margin-top: 0; }
.page-body--about > .about-aside, .page-body--rules > .toc, .page-body--privacy > .toc { grid-column: 2; grid-row: 1 / span 400; position: sticky; top: calc(var(--rzt-stick, 0px) + 1.5rem); align-self: start; max-height: calc(100vh - var(--rzt-stick, 0px) - 3rem); overflow-y: auto; }
.about-aside, .toc { background: var(--white); border-top: 3px solid var(--pine); padding: 1.2rem 1.4rem 1.1rem; font-size: .9rem; line-height: 1.4; }
.about-aside dl { margin: 0; }
.about-aside dt { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--pine); margin: 0 0 .25rem; }
.about-aside dt a, .toc a { color: inherit; text-decoration: none; }
.about-aside dt a:hover, .toc a:hover { text-decoration: underline; }
.about-aside dd { margin: 0 0 .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left !important; hyphens: manual; }
.about-aside dd:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.about-aside ul { list-style: none; margin: 0; padding: 0; }
.about-aside li { text-align: left !important; padding: .1rem 0 .1rem .9rem; position: relative; }
.about-aside li::before { content: ""; position: absolute; left: 0; top: .78em; width: .38rem; height: 2px; background: var(--ochre); }
.toc__title { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--pine); margin: 0 0 .6rem; text-align: left !important; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { text-align: left !important; padding: .3rem 0; border-top: 1px solid var(--line); }
.toc a { color: var(--ink); }
@media (max-height: 50rem) { .page-body--about > .about-aside, .page-body--rules > .toc, .page-body--privacy > .toc { position: static; max-height: none; } }
@media (max-width: 1000px) {
	.page-body--about, .page-body--rules, .page-body--privacy { display: block; font-size: var(--fs-body); }
	.page-body--about > .about-aside, .page-body--rules > .toc, .page-body--privacy > .toc { position: static; margin-bottom: 2rem; }
}


/* «Бізнесу»: search across all hromadas by branch of the economy, good or service, word and oblast. */
.page-body > .bsearch { max-width: none; }
.bsearch { margin: .5rem 0 3rem; padding: clamp(1.2rem, 2.4vw, 2rem); background: var(--white); border-top: 3px solid var(--pine); scroll-margin-top: 1rem; }
.bsearch h2 { margin: 0 0 .35rem; }
.plist__where { font-size: .85rem; color: var(--ink-soft); margin-top: auto; padding-top: .3rem; }
.bsearch .block__lead { margin: 0 0 1.3rem; color: var(--ink-soft); }
.bsearch [hidden] { display: none !important; }
.bsearch__form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .9fr) auto; gap: .9rem 1rem; align-items: end; }
.bsearch__form p { margin: 0; }
.bsearch__form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.bsearch__form select, .bsearch__form input { width: 100%; min-height: 3rem; padding: .55rem .7rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.bsearch__form select:focus, .bsearch__form input:focus { border-color: var(--ink); }
.bsearch__actions { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.bsearch__actions .button { min-height: 3rem; }
.bsearch__reset { font-size: .95rem; }
.bsearch__results { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.bsearch__count { margin: 0 0 1rem; color: var(--ink-soft); }
.bsearch__count b { color: var(--ink); }
.bsearch__group { margin-bottom: 1.8rem; }
.bsearch__group h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.bsearch__n { display: inline-block; min-width: 1.6rem; padding: 0 .4rem; margin-left: .3rem; font-family: var(--text); font-size: .85rem; font-weight: 700; line-height: 1.6rem; text-align: center; color: var(--white); background: var(--pine-2); border-radius: .8rem; }
@media (max-width: 1100px) { .bsearch__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bsearch__actions { grid-column: 1 / -1; } }
@media (max-width: 600px) { .bsearch__form { grid-template-columns: minmax(0, 1fr); } }
.rzv-checks { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin-top: .3rem; }
.rzv-checks .rzv-check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; }

.ag-line { margin: .9rem 0 .35rem; color: var(--ink-soft, inherit); }
.ag-line + .links-inline { margin-top: 0; }
