/* ------------------------------------------------------------------
   Taallem France: one dark system for the pages of *.france.taallem.com.
   Navy night, a serif display face for titles, line drawings in cards.
   No animation loop, no picture to download: the text paints at once.
   ------------------------------------------------------------------ */

:root {
	color-scheme: dark;
	--bg: #050a1a;
	--surface: #0d1530;
	--surface-2: #111b3a;
	--line: rgb(255 255 255 / 0.08);
	--line-2: rgb(255 255 255 / 0.18);
	--ink: #eef1fa;
	--body: #c4cadb;
	--muted: #8d96ae;
	--accent: #a8c0ff;
	--pill: #e9ecf8;
	--pill-ink: #0b1430;
	--green: #4ade80;
	--blue: #3b82f6;
	--orange: #fb923c;
	--green-line: rgb(74 222 128 / 0.4);
	--fill: #2563eb;
	--fill-hover: #1d4ed8;
	--glow-1: rgb(29 78 216 / 0.3);
	--glow-2: rgb(30 58 138 / 0.22);
	--bar: rgb(5 10 26 / 0.78);
	--btn-hover: #fff;
	--field: rgb(255 255 255 / 0.03);
	--spec-bg: rgb(255 255 255 / 0.04);
	--spec-bar: rgb(16 40 104 / 0.55);
	--deadline-bg: rgb(251 146 60 / 0.12);
	--deadline-ink: #fdba74;
	--strip-ink: rgb(238 241 250 / 0.8);
	--art: rgb(255 255 255 / 0.3);
	--art-strong: rgb(255 255 255 / 0.75);
	--art-faint: rgb(255 255 255 / 0.12);
	--art-dot: rgb(255 255 255 / 0.9);
	--art-text: rgb(255 255 255 / 0.55);
	--art-wash: rgb(255 255 255 / 0.015);
	--serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	--radius: 16px;
}

/* Light version: same layout, navy ink on a pale blue-white page.
   The head script sets data-theme from the visitor's choice, else from the system setting. */
:root[data-theme='light'] {
	color-scheme: light;
	--bg: #f5f7fc;
	--surface: #ffffff;
	--surface-2: #eef2fb;
	--line: rgb(11 20 48 / 0.1);
	--line-2: rgb(11 20 48 / 0.22);
	--ink: #0b1430;
	--body: #2c3654;
	--muted: #5b6480;
	--accent: #2f55d4;
	--pill: #0b1430;
	--pill-ink: #ffffff;
	--green: #15803d;
	--blue: #2563eb;
	--orange: #ea580c;
	--green-line: rgb(21 128 61 / 0.35);
	--glow-1: rgb(59 130 246 / 0.12);
	--glow-2: rgb(99 102 241 / 0.08);
	--bar: rgb(245 247 252 / 0.85);
	--btn-hover: #1c2a5a;
	--field: #ffffff;
	--spec-bg: #ffffff;
	--spec-bar: rgb(37 99 235 / 0.07);
	--deadline-bg: rgb(234 88 12 / 0.1);
	--deadline-ink: #9a3412;
	--strip-ink: rgb(11 20 48 / 0.72);
	--art: rgb(11 20 48 / 0.28);
	--art-strong: rgb(11 20 48 / 0.7);
	--art-faint: rgb(11 20 48 / 0.1);
	--art-dot: rgb(11 20 48 / 0.85);
	--art-text: rgb(11 20 48 / 0.55);
	--art-wash: rgb(37 99 235 / 0.03);
}


*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	color: var(--body);
	font: 400 1rem/1.6 var(--sans);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	position: relative;
	isolation: isolate;
	margin: 0;
	min-height: 100vh;
	overflow-x: clip;
	background:
		radial-gradient(58rem 36rem at 88% 8%, var(--glow-1), transparent 70%),
		radial-gradient(40rem 28rem at 0% 0%, var(--glow-2), transparent 70%),
		var(--bg);
	background-repeat: no-repeat;
	-webkit-font-smoothing: antialiased;
}

/* The country of the site: one photograph behind every title (--hero-pic), the home page
   its own (--home-pic). Another country only changes these two lines.
   No dots of star dust over them: the owner found they made the photographs look generated. */
:root {
	--hero-pic: url('/country-fr.webp');
	--home-pic: url('/photo-accueil.webp');
}

a {
	color: inherit;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection {
	background: var(--blue);
	color: #fff;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ink);
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

.wrap {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) {
	.wrap {
		padding-inline: 1.5rem;
	}
}

.narrow {
	max-width: 52rem;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip {
	position: absolute;
	top: -4rem;
	left: 1rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	border-radius: 8px;
	background: var(--pill);
	color: var(--pill-ink);
	font-weight: 600;
}

.skip:focus {
	top: 1rem;
}

/* ---------- header: the Tender Hunter header ----------
   Transparent over the top of the page; once scrolled (live.js puts .scrolled on <html>),
   white with a shadow, the round gradient logo and the name in the same gradient.
   Without JavaScript (no data-theme on <html>) it stays white. */

:root {
	--header-h: 4.75rem;
}

main {
	padding-top: var(--header-h);
}

.site-header {
	--fg: #fff;
	--fg-hover: #93c5fd;
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 50;
	color: var(--fg);
	transition: background-color 0.3s, box-shadow 0.3s;
}

:root[data-theme='light'] .site-header {
	--fg: #0f172a;
	--fg-hover: #2563eb;
}

:root.scrolled .site-header,
:root:not([data-theme]) .site-header,
.site-header:has(.nav-menu[open]) {
	--fg: #334155;
	--fg-hover: #2563eb;
	background: #fff;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

:root[data-theme='light'].scrolled .site-header {
	background: rgb(255 255 255 / 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.site-header .wrap {
	max-width: 80rem;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

/* The Taallem badge (a door and a path, blue to green) only appears with the white header. */
.brand-logo {
	display: grid;
	flex: none;
	place-items: center;
	width: 0;
	height: 3rem;
	overflow: hidden;
	border-radius: 0.7rem;
	opacity: 0;
	transition: width 0.3s, opacity 0.3s;
}

.brand-logo img {
	display: block;
	width: 3rem;
	max-width: none;
	height: 100%;
}

.brand-name {
	color: var(--fg);
	font-size: 1.25rem;
	font-weight: 700;
	white-space: nowrap;
	transition: font-size 0.3s, margin 0.3s;
}

:root.scrolled .brand-logo,
:root:not([data-theme]) .brand-logo,
.site-header:has(.nav-menu[open]) .brand-logo {
	width: 3rem;
	opacity: 1;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15);
}

:root.scrolled .brand-name,
:root:not([data-theme]) .brand-name,
.site-header:has(.nav-menu[open]) .brand-name {
	margin-inline-start: 0.5rem;
	background: linear-gradient(to right, #3b82f6, #10b981);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 1.75rem;
	letter-spacing: 0.025em;
}

.header-nav {
	display: none;
	align-items: center;
}

/* Four needs, then the agents, on one line: no label breaks, even beside the logo of the
   scrolled header. The entry of the current page (or of its group) is marked. */
.nav-item {
	padding: 0.5rem 0.55rem;
	color: var(--fg);
	font-size: 0.95rem;
	white-space: nowrap;
	transition: color 0.2s;
}

.nav-item:hover,
.nav-item[aria-current] {
	color: var(--fg-hover);
}

/* The offer of the site comes first and stands out: the agents (the owner's choice, 2026-11-22). */
.nav-drop-agents > .nav-item {
	/* The highlight colour of the header: dark blue on the white header, light on the photograph. */
	color: var(--fg-hover);
	font-weight: 600;
}

/* The thin line between the offer and the four needs. */
.nav-divider {
	width: 1px;
	height: 1.4rem;
	margin-inline: 0.4rem;
	background: currentColor;
	color: var(--fg);
	opacity: 0.25;
}

/* Under each entry: its lines (tabs or pages), in the same white panel as the language menu.
   It opens on hover and on keyboard focus; the entry itself still opens its page. */
.nav-drop {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-drop > .nav-item::after {
	content: '';
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin-inline-start: 0.3em;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-0.2em) rotate(45deg);
}

.nav-sub {
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	z-index: 50;
	display: none;
	min-width: 16rem;
	padding: 0.4rem 0;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.nav-drop:hover .nav-sub,
.nav-drop:focus-within .nav-sub {
	display: grid;
}

.nav-sub-item {
	padding: 0.6rem 1rem;
	color: #1e293b;
	font-size: 0.92rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.nav-sub-item:hover,
.nav-sub-item:focus-visible,
.nav-sub-item[aria-current='page'] {
	background: #eff6ff;
	color: #2563eb;
}

/* « Composez votre équipe », last line of the agents: set apart, in blue. */
.nav-drop-agents .nav-sub-item:last-child {
	margin-top: 0.3rem;
	border-top: 1px solid #f1f5f9;
	color: #2563eb;
	font-weight: 600;
}

/* Panels with titled columns (Business, Individuals): each title is a page, its lines are tabs
   of that page; the columns sit side by side (the third level of the menu). */
.nav-sub-cols {
	grid-auto-columns: minmax(13rem, auto);
	grid-auto-flow: column;
	gap: 0.25rem;
	padding: 0.6rem;
}

.nav-col {
	display: grid;
	align-content: start;
}

.nav-col + .nav-col {
	padding-inline-start: 0.25rem;
	border-inline-start: 1px solid #f1f5f9;
}

.nav-sub-head {
	margin-bottom: 0.15rem;
	padding: 0.55rem 1rem 0.35rem;
	color: #0f172a;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nav-sub-head:hover,
.nav-sub-head:focus-visible,
.nav-sub-head[aria-current='page'] {
	color: #2563eb;
}

.nav-sub-head ~ .nav-sub-item {
	border-radius: 0.5rem;
}

/* The same lines in the menu of small screens, set back under their entry. */
.mobile-sub {
	display: grid;
	margin: 0 0 0.4rem 0.75rem;
	padding-inline-start: 0.75rem;
	border-inline-start: 2px solid #e2e8f0;
}

.mobile-sub-col {
	display: grid;
	margin-bottom: 0.3rem;
}

.mobile-panel .mobile-sub-head {
	padding: 0.55rem 0.25rem 0.2rem;
	border: 0;
	color: #0f172a;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mobile-sub-col .mobile-sub-item {
	padding-inline-start: 0.85rem !important;
}

.mobile-panel .mobile-sub-item {
	padding: 0.5rem 0.25rem;
	border: 0;
	color: #475569;
	font-size: 0.92rem;
	font-weight: 500;
}

.header-tools {
	display: flex;
	flex: none;
	align-items: center;
	gap: 0.4rem;
}

.ico {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lang-menu {
	position: relative;
}

:is(.lang-menu, .nav-menu) > summary {
	list-style: none;
	cursor: pointer;
}

:is(.lang-menu, .nav-menu) > summary::-webkit-details-marker {
	display: none;
}

.lang-button {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
	border-radius: 0.375rem;
	color: var(--fg);
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s;
}

.lang-button:hover,
.lang-menu[open] > .lang-button {
	color: var(--fg-hover);
}

/* The language menu and the mobile menu are white sheets, whatever the theme. */
.lang-panel {
	position: absolute;
	inset-inline-end: 0;
	top: 100%;
	z-index: 50;
	width: 16rem;
	margin-top: 0.5rem;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #fff;
	color: #334155;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	animation: demo-in 0.2s ease-out both;
}

.lang-panel-title {
	padding: 0.75rem;
	border-bottom: 1px solid #f1f5f9;
	color: #1e293b;
	font-size: 0.875rem;
	font-weight: 600;
}

.lang-panel ul {
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;
}

.lang-panel a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	transition: background-color 0.2s;
}

.lang-panel a:hover,
.lang-panel a[aria-current] {
	background: #eff6ff;
}

.lang-label {
	flex: 1;
	color: #1e293b;
	font-weight: 500;
}

.lang-code {
	padding: 0.125rem 0.5rem;
	border-radius: 0.25rem;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.75rem;
}

.lang-check {
	color: #2563eb;
}

/* ---------- site search: the magnifier of the header and its full screen ---------- */

.search-button {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.search-button[hidden] {
	display: none;
}

.search-button:hover {
	background: rgb(148 163 184 / 0.18);
	color: var(--fg-hover);
}

:root.search-open {
	overflow: hidden;
}

.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	overflow-y: auto;
	background: #0b1225;
	color: #e2e8f0;
	animation: demo-in 0.2s ease-out both;
}

.search-overlay[hidden] {
	display: none;
}

/* The country's photograph, faint, behind the title (as on the reference site). */
.search-pic {
	position: absolute;
	inset: 0 0 auto;
	height: 26rem;
	background: var(--home-pic) 50% 40% / cover no-repeat;
	opacity: 0.22;
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
	mask-image: linear-gradient(to bottom, #000 40%, transparent);
	pointer-events: none;
}

.search-inner {
	position: relative;
	max-width: 62rem;
	padding-block: clamp(5rem, 16vh, 10rem) 3rem;
	text-align: center;
}

.search-title {
	color: #fff;
	font: 700 clamp(2rem, 5vw, 3.4rem) / 1.15 var(--sans);
	letter-spacing: -0.02em;
}

.search-brand {
	background: linear-gradient(to right, #60a5fa, #34d399);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.search-box {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: clamp(2.5rem, 8vh, 5rem);
	padding: 0.9rem 1.1rem 0.9rem 1.5rem;
	border: 2px solid #3b82f6;
	border-radius: 1.25rem;
	background: rgb(15 23 42 / 0.92);
	box-shadow: 0 0 0 4px rgb(59 130 246 / 0.18), 0 20px 50px rgb(0 0 0 / 0.35);
	color: #60a5fa;
	text-align: start;
}

.search-box input[type='search'] {
	flex: 1;
	min-width: 0;
	padding: 0.4rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #f8fafc;
	font: 400 clamp(1.15rem, 2.4vw, 1.75rem) var(--sans);
}

.search-box input::placeholder {
	color: #94a3b8;
}

.search-box input[type='search']:focus {
	border: 0;
	outline: none;
}

.search-close {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
}

.search-close:hover {
	background: rgb(148 163 184 / 0.15);
	color: #fff;
}

.search-close svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.search-suggest {
	margin-top: 2.25rem;
}

.search-suggest p {
	color: #94a3b8;
	font-size: 0.95rem;
}

.search-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1rem;
}

.search-chip {
	padding: 0.75rem 1.4rem;
	border: 1px solid rgb(148 163 184 / 0.22);
	border-radius: 999px;
	background: rgb(30 41 59 / 0.85);
	color: #f1f5f9;
	font: 500 1rem var(--sans);
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.search-chip:hover {
	border-color: #3b82f6;
	background: rgb(30 58 138 / 0.6);
}

.search-hint {
	margin-top: 2.5rem;
	color: #64748b;
	font-size: 0.82rem;
}

.search-hint kbd {
	padding: 0.15rem 0.45rem;
	border: 1px solid #334155;
	border-radius: 4px;
	background: #1e293b;
	color: #e2e8f0;
	font: 600 0.78rem var(--sans);
}

.search-results {
	margin-top: 2rem;
	text-align: start;
}

.search-results:empty {
	display: none;
}

.search-group + .search-group {
	margin-top: 1.5rem;
}

.search-group h3 {
	margin-bottom: 0.5rem;
	color: #94a3b8;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.search-group ul {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.search-hit {
	display: grid;
	gap: 0.15rem;
	padding: 0.75rem 1rem;
	border: 1px solid rgb(148 163 184 / 0.14);
	border-radius: 12px;
	background: rgb(30 41 59 / 0.6);
	transition: border-color 0.15s, background-color 0.15s;
}

.search-hit:hover,
.search-hit:focus-visible {
	border-color: #3b82f6;
	background: rgb(30 58 138 / 0.45);
}

.search-hit-title {
	color: #f8fafc;
	font-weight: 600;
}

.search-hit-title mark {
	background: none;
	color: #60a5fa;
}

.search-hit-meta,
.search-empty {
	color: #94a3b8;
	font-size: 0.88rem;
}

/* Light theme: the same screen on the pale page colour, white field, chips and results. */
:root[data-theme='light'] .search-overlay {
	background: #f5f7fc;
	color: #334155;
}

:root[data-theme='light'] .search-pic {
	opacity: 0.3;
	filter: saturate(0.7) brightness(1.1);
}

:root[data-theme='light'] .search-title {
	color: #0f172a;
}

:root[data-theme='light'] .search-brand {
	background-image: linear-gradient(to right, #2563eb, #059669);
}

:root[data-theme='light'] .search-box {
	background: #fff;
	box-shadow: 0 0 0 4px rgb(37 99 235 / 0.12), 0 20px 50px rgb(15 23 42 / 0.12);
	color: #2563eb;
}

:root[data-theme='light'] .search-box input[type='search'] {
	color: #0f172a;
}

:root[data-theme='light'] .search-box input::placeholder,
:root[data-theme='light'] :is(.search-suggest p, .search-hint, .search-group h3, .search-hit-meta, .search-empty) {
	color: #64748b;
}

:root[data-theme='light'] .search-close {
	color: #64748b;
}

:root[data-theme='light'] .search-close:hover {
	background: rgb(15 23 42 / 0.06);
	color: #0f172a;
}

:root[data-theme='light'] :is(.search-chip, .search-hit) {
	border-color: #e2e8f0;
	background: #fff;
	color: #0f172a;
}

:root[data-theme='light'] :is(.search-chip, .search-hit):hover,
:root[data-theme='light'] .search-hit:focus-visible {
	border-color: #2563eb;
	background: #eff6ff;
}

:root[data-theme='light'] .search-hit-title {
	color: #0f172a;
}

:root[data-theme='light'] .search-hint kbd {
	border-color: #cbd5e1;
	background: #fff;
	color: #0f172a;
}

/* The icon shows the theme one would switch to; hidden until the head script ran. */
.theme-button {
	display: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

:root[data-theme] .theme-button {
	display: inline-grid;
}

.theme-button:hover {
	background: rgb(148 163 184 / 0.18);
	color: var(--fg-hover);
}

.theme-button svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-button .i-moon,
:root[data-theme='light'] .theme-button .i-sun {
	display: none;
}

:root[data-theme='light'] .theme-button .i-moon {
	display: block;
}

.btn-nav {
	display: none;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	background: #2563eb;
	color: #fff;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.btn-nav:hover {
	background: #1d4ed8;
}

.menu-button {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--fg);
	transition: color 0.2s;
}

.menu-button:hover {
	color: var(--fg-hover);
}

.nav-menu[open] .i-menu,
.nav-menu:not([open]) .i-close {
	display: none;
}

/* Full-width white sheet under the header on small screens. */
.mobile-panel {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	max-height: calc(100svh - var(--header-h));
	overflow-y: auto;
	padding: 0.5rem 1rem 1rem;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
	animation: demo-in 0.2s ease-out both;
}

.mobile-panel a {
	display: block;
	padding: 0.6rem 1rem;
	border-radius: 0.375rem;
	font-size: 0.95rem;
}

.mobile-panel a:hover,
.mobile-panel a[aria-current] {
	background: #eff6ff;
	color: #2563eb;
}

.mobile-panel .btn-nav {
	display: block;
	margin-top: 0.75rem;
	color: #fff;
	text-align: center;
}

.mobile-panel .btn-nav:hover {
	background: #1d4ed8;
	color: #fff;
}

@media (min-width: 1240px) {
	/* Room between the entries: the owner found the menu « trop serré » (2026-11-22). */
	.header-nav {
		display: flex;
		gap: 1.5rem;
	}

	.header-tools {
		gap: 0.6rem;
	}

	.lang-button {
		border-color: transparent;
	}

	.header-tools > .btn-nav {
		display: inline-block;
	}

	.nav-menu {
		display: none;
	}
}

@media (max-width: 480px) {
	.header-inner {
		gap: 0.5rem;
	}

	.brand-name {
		overflow: hidden;
		font-size: 1.1rem;
		text-overflow: ellipsis;
	}

	.brand-logo {
		height: 2.25rem;
	}

	:root.scrolled .brand-logo,
	:root:not([data-theme]) .brand-logo,
	.site-header:has(.nav-menu[open]) .brand-logo {
		width: 2.25rem;
	}

	:root.scrolled .brand-name,
	:root:not([data-theme]) .brand-name,
	.site-header:has(.nav-menu[open]) .brand-name {
		font-size: 1.1rem;
	}

	.header-tools {
		gap: 0.15rem;
	}

	.lang-button {
		padding-inline: 0.45rem;
		border-color: transparent;
	}

	.lang-button > span {
		display: none;
	}
}

/* ---------- hero ---------- */

/* Every title runs under the transparent header, over the country's photograph:
   faint but recognisable, fading into the page. */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
	padding-block: calc(clamp(3.5rem, 11vh, 7.5rem) + var(--header-h)) clamp(2rem, 6vh, 3.5rem);
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--hero-pic) 50% 45% / cover no-repeat;
	opacity: 0.42;
	filter: saturate(0.75);
	-webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 98%);
	mask-image: linear-gradient(to bottom, #000 35%, transparent 98%);
}

.home-hero.nuit::before {
	background-image: var(--home-pic);
}

:root[data-theme='light'] .hero::before {
	opacity: 0.3;
	filter: saturate(0.6) brightness(1.15);
}

.display {
	max-width: 17ch;
	font-family: var(--serif);
	font-size: clamp(2.5rem, 6.2vw, 5rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.display em {
	font-style: italic;
	font-weight: 700;
}

.lead {
	max-width: 40rem;
	margin-top: 1.5rem;
	color: var(--body);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.lead em {
	color: var(--ink);
	font-style: italic;
	font-weight: 600;
}

.hero .note,
.hero .count {
	margin-top: 1rem;
}

.count {
	color: var(--ink);
	font-weight: 500;
}

.count:empty {
	display: none;
}

/* ---------- home: three first screens ----------
   The build names one on <html data-home> (the admin's choice); ?v=1, ?v=3 or ?v=nuit
   shows another. « calme » (v1) and « editorial » (v3) are the Tender Hunter screens:
   a plain page, a bold sans-serif title, one blue button, compact doors. */

.home-hero {
	display: none;
}

[data-home='calme'] .home-hero.calme,
[data-home='editorial'] .home-hero.edito,
[data-home='nuit'] .home-hero.nuit {
	display: block;
}

[data-home='nuit'] .home-stats {
	display: none;
}

:root:is([data-home='calme'], [data-home='editorial']) body {
	background: var(--bg);
}

.calme,
.edito {
	position: relative;
	isolation: isolate;
	padding-block: clamp(4.5rem, 12vh, 7.5rem) clamp(2rem, 5vh, 3.5rem);
}

/* « Calme » runs under the transparent header, its picture behind it, as on Tender Hunter. */
.calme {
	margin-top: calc(-1 * var(--header-h));
	padding-top: calc(clamp(4.5rem, 12vh, 7.5rem) + var(--header-h));
	overflow: hidden;
	text-align: center;
}

.calme .hv-h1 {
	max-width: 58rem;
}

/* The picture as atmosphere: only slightly cleared behind the text so the landmark
   stays visible, fading out before the doors. */
.calme-pic {
	--clear: radial-gradient(ellipse 52% 58% at 50% 42%, rgb(0 0 0 / 0.5) 35%, #000 100%);
	--fade: linear-gradient(to bottom, #000 45%, transparent 96%);
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url('/accueil.webp') 24% 38% / cover no-repeat;
	opacity: 0.26;
	filter: saturate(0.6);
	-webkit-mask-image: var(--clear), var(--fade);
	mask-image: var(--clear), var(--fade);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

:root[data-theme='light'] .calme-pic {
	background-image: url('/accueil-clair.webp');
	opacity: 0.34;
}

/* The photograph of the country (Paris, the Eiffel Tower) shows more than the illustrations. */
:root[data-images='photos'] .calme-pic {
	background-image: var(--home-pic);
	background-position: 50% 40%;
	opacity: 0.55;
	filter: saturate(0.8);
}

:root[data-images='photos'][data-theme='light'] .calme-pic {
	opacity: 0.45;
}

.hv-h1 {
	max-width: 52rem;
	margin: 0 auto;
	color: var(--ink);
	font: 700 clamp(2.125rem, 4.4vw, 3.5rem) / 1.1 var(--sans);
	letter-spacing: -0.022em;
	text-wrap: balance;
}

/* The closing sentence of the title, set apart in a quieter ink. */
.hv-h1-tail {
	display: block;
	color: var(--muted);
}

.hv-lead {
	max-width: 34rem;
	margin: 1.25rem auto 0;
	color: var(--body);
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.55;
}

.hv-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

.hv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.375rem;
	border-radius: 0.625rem;
	background: var(--fill);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.15s;
}

.hv-btn:hover {
	background: var(--fill-hover);
}

.arrow {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Free / Soon: a word, not a coloured pill. */
.hv-tag {
	color: var(--muted);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.calme-doors {
	display: grid;
	gap: 0.75rem;
	margin: 2.75rem 0 0;
	padding: 0;
	list-style: none;
	text-align: start;
}

@media (min-width: 768px) {
	.calme-doors {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.hv-door {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	height: 100%;
	padding: 1rem 1.125rem;
	border: 1px solid var(--line-2);
	border-radius: 0.875rem;
	background: var(--surface);
	color: var(--ink);
	transition: border-color 0.15s;
}

.hv-door:hover {
	border-color: var(--accent);
}

.hv-door-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent);
}

.hv-door-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hv-door-body {
	display: grid;
	flex: 1;
	gap: 0.25rem;
	min-width: 0;
}

.hv-door-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.hv-door-title {
	font-weight: 600;
	line-height: 1.3;
}

.hv-door-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--accent);
	font-size: 0.875rem;
	font-weight: 600;
}

.hv-soon {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.625rem;
	margin-top: 1.25rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.calme .hv-soon {
	justify-content: center;
}

/* The dot leads each name, so a wrapped line never ends on a stray separator. */
.hv-soon-item::before {
	content: '·';
	margin-inline-end: 0.625rem;
}

.edito-grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.edito-grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 4.5rem;
	}
}

.edito .hv-h1 {
	margin: 0;
	font-size: clamp(2.375rem, 5vw, 4rem);
}

.edito .hv-lead {
	margin-inline: 0;
}

.edito .hv-actions {
	justify-content: flex-start;
}

.hv-note {
	max-width: 19rem;
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

.edito-list {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--line-2);
	list-style: none;
}

.edito-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.25rem 1rem;
	align-items: center;
	padding-block: 1.125rem;
	border-top: 1px solid var(--line-2);
}

.edito-row > * {
	grid-column: 1;
}

.edito-row > .arrow {
	grid-row: 1 / span 3;
	grid-column: 2;
	color: var(--muted);
	transition: transform 0.2s, color 0.15s;
}

.edito-title {
	color: var(--ink);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.15s;
}

.edito-cta {
	color: var(--muted);
	font-size: 0.9375rem;
}

.edito-row:hover .edito-title,
.edito-row:hover > .arrow {
	color: var(--accent);
}

.edito-row:hover > .arrow {
	transform: translateX(4px);
}

.home-stats .stats {
	margin: 0 auto;
}

/* Under v1 and v3: the open doors as cards topped by the pictures of the old carousel.
   The six line-drawing cards and the sources table follow, whatever the first screen. */
.pic-doors {
	display: none;
}

:root:is([data-home='calme'], [data-home='editorial']) .pic-doors {
	display: block;
}

.pic-doors-title {
	font: 700 clamp(1.75rem, 3.2vw, 2.5rem) / 1.2 var(--sans);
	letter-spacing: -0.018em;
	text-align: center;
}

.pic-doors-lead {
	max-width: 40rem;
	margin: 0.875rem auto 0;
	color: var(--muted);
	font-size: 1.0625rem;
	text-align: center;
}

.pic-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1.25rem;
	margin-top: 2.25rem;
}

.pic-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line-2);
	border-radius: 1rem;
	background: var(--surface);
	transition: border-color 0.15s;
}

.pic-card:hover {
	border-color: var(--accent);
}

.pic-card-pic {
	aspect-ratio: 16 / 9;
	background: var(--surface-2);
}

/* One picture per card: the photo, or the carousel illustration in the colours of the theme.
   The hidden ones are lazy, so they are never downloaded. */
.pic-card-pic img {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:root[data-images='photos'] :is(.pic-card-pic, .slide) .pic-photo,
.slide.photo-only .pic-photo,
:root[data-images='illustrations']:not([data-theme='light']) :is(.pic-card-pic, .slide) .pic-dark,
:root[data-images='illustrations'][data-theme='light'] :is(.pic-card-pic, .slide) .pic-light {
	display: block;
}

/* ---------- the large photo carousel ----------
   A row of full-width photos that snaps; live.js adds arrows, dots and the slideshow. */

.carousel {
	position: relative;
	margin-top: 2.25rem;
}

.carousel-track {
	position: relative;
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border-radius: 1.25rem;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
	display: none;
}

.slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: 16 / 9;
	max-height: 36rem;
	overflow: hidden;
	background: var(--surface-2);
	scroll-snap-align: start;
}

@media (max-width: 640px) {
	.slide {
		aspect-ratio: 4 / 5;
	}
}

.slide img {
	position: absolute;
	inset: 0;
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A dark veil from the bottom, so the white text reads on any photo. */
.slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(3 7 18 / 0.86) 0%, rgb(3 7 18 / 0.5) 38%, transparent 72%);
	pointer-events: none;
}

.slide-text {
	position: absolute;
	inset: auto clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
	z-index: 1;
	display: grid;
	justify-items: start;
	gap: 0.6rem;
	max-width: 38rem;
}

.slide-kicker {
	color: rgb(255 255 255 / 0.82);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.slide-title {
	color: #fff;
	font: 700 clamp(1.6rem, 3.4vw, 2.6rem) / 1.12 var(--sans);
	letter-spacing: -0.02em;
}

.slide-lead {
	color: rgb(255 255 255 / 0.88);
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	line-height: 1.5;
}

.slide .hv-btn {
	margin-top: 0.4rem;
}

.carousel-arrow,
.carousel-pause,
.carousel-bar {
	display: none;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: 999px;
	background: rgb(3 7 18 / 0.35);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	translate: 0 -50%;
	cursor: pointer;
	transition: background-color 0.15s;
}

.carousel-arrow:hover {
	background: rgb(3 7 18 / 0.6);
}

.carousel-arrow.prev {
	left: 1rem;
}

.carousel-arrow.next {
	right: 1rem;
}

.carousel-arrow svg,
.carousel-pause svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

[data-carousel-ready] .carousel-arrow {
	display: grid;
}

[data-carousel-ready] .carousel-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	margin-top: 1.1rem;
}

.carousel-dots {
	display: flex;
	gap: 0.5rem;
}

.carousel-dot {
	width: 0.6rem;
	height: 0.6rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--line-2);
	cursor: pointer;
	transition: width 0.3s, background-color 0.3s;
}

.carousel-dot[aria-current='true'] {
	width: 1.75rem;
	background: var(--fill);
}

[data-carousel-ready] .carousel-pause {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.carousel-pause .i-play,
.carousel-pause[aria-pressed='true'] .i-pause {
	display: none;
}

.carousel-pause[aria-pressed='true'] .i-play {
	display: block;
}

.carousel + .pic-cards {
	margin-top: 2.5rem;
}

@media (max-width: 640px) {
	.carousel-arrow {
		top: 1.5rem;
		width: 2.4rem;
		height: 2.4rem;
		translate: none;
	}
}

.pic-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem 1.5rem;
}

.pic-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.pic-card-top .hv-door-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.625rem;
}

.chip {
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	color: var(--body);
	font-size: 0.75rem;
	font-weight: 500;
}

.pic-card-kicker {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pic-card-title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.pic-card:hover .chev {
	transform: translateX(3px);
}

:root[data-home='calme'] .home-stats .stats {
	text-align: center;
}

/* ---------- sections ---------- */

.section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-title {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	font-weight: 400;
	line-height: 1.15;
}

.section-lead {
	max-width: 46rem;
	margin-top: 0.75rem;
	color: var(--muted);
}

.section-title + .cards,
.section-title + .list,
.section-title + .panel,
.section-lead + * {
	margin-top: 1.75rem;
}

.section-title + .table-wrap,
.section-title + .cities,
.section-title + .aids,
.section-title + .rates,
.section-title + .waitlist,
.section-title + .faqs,
.section-title + .empty,
.section-title + .chips {
	margin-top: 1.5rem;
}

.note {
	color: var(--muted);
	font-size: 0.875rem;
}

.note.center {
	margin-top: 0.9rem;
	text-align: center;
}

.empty {
	padding: 1rem 1.2rem;
	border: 1px dashed var(--line-2);
	border-radius: 12px;
	color: var(--muted);
	list-style: none;
}

/* ---------- figures ---------- */

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1.25rem 2rem;
	max-width: 52rem;
	margin: 2.5rem 0 0;
}

.stat {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.15rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line-2);
}

.stat dd {
	margin: 0;
	color: var(--ink);
	font-family: var(--serif);
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.stat dt {
	color: var(--muted);
	font-size: 0.9rem;
}

/* ---------- cards with a line drawing ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1.25rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color 0.15s;
}

.card:has(.card-link):hover {
	border-color: var(--line-2);
}

.card-art {
	height: 11.5rem;
	background: linear-gradient(to bottom, var(--art-wash), transparent);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.4rem 1.5rem 1.5rem;
}

.card-title {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.25;
}

.card-text {
	color: var(--muted);
}

.card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--ink);
	font-weight: 500;
}

/* The whole card is clickable through its link. */
.card-link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.chev {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s;
}

.card:hover .chev,
.text-link:hover .chev {
	transform: translateX(3px);
}

.tag {
	align-self: flex-start;
	padding: 0.15rem 0.55rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tag.open {
	border-color: var(--green-line);
	color: var(--green);
}

/* Line drawings: thin white strokes, a few coloured dots. */
.art {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--art);
	stroke-width: 1;
}

.art * {
	vector-effect: non-scaling-stroke;
}

.art .s {
	stroke: var(--art-strong);
}

.art .f {
	stroke: var(--art-faint);
}

.art .d {
	stroke-dasharray: 3 5;
}

.art .dot {
	stroke: none;
}

.art .g {
	fill: var(--green);
}

.art .b {
	fill: var(--blue);
}

.art .o {
	fill: var(--orange);
}

.art .w {
	fill: var(--art-dot);
}

.art text {
	fill: var(--art-text);
	stroke: none;
	font: 11px var(--sans);
}

/* ---------- lists of offers, notices, companies ---------- */

.list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.item {
	display: grid;
	gap: 0.3rem;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--line);
}

.item[hidden] {
	display: none;
}

.item-title {
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.item-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 0.25em;
}

.meta {
	color: var(--muted);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.meta a {
	color: var(--body);
	text-decoration: underline;
	text-decoration-color: var(--line-2);
}

.deadline {
	justify-self: start;
	margin-top: 0.2rem;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--deadline-bg);
	color: var(--deadline-ink);
	font-size: 0.8rem;
	font-weight: 500;
}

.sub {
	margin: 2rem 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.chips button {
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: transparent;
	color: var(--body);
	font: 500 0.875rem var(--sans);
	cursor: pointer;
}

.chips button[aria-pressed='true'] {
	border-color: var(--pill);
	background: var(--pill);
	color: var(--pill-ink);
}

/* ---------- tenders: search words and fields ---------- */

.boamp-search {
	max-width: 44rem;
	margin-top: 1.5rem;
}

.domains {
	margin-top: 1.25rem;
}

.domains[hidden],
.boamp-search[hidden] {
	display: none;
}

.domains-title {
	margin-bottom: 0.6rem;
	color: var(--ink);
	font-weight: 600;
}

.domain-chips {
	margin-bottom: 0;
}

[data-boamp-status]:not(:empty) {
	margin-bottom: 0.75rem;
}

.boamp-more {
	margin-top: 1.25rem;
}

/* ---------- tenders: filters and the list / tiles switch ---------- */

.list-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin: 1.5rem 0 1.25rem;
}

.list-tools .chips {
	margin-bottom: 0;
}

.views {
	display: inline-flex;
	padding: 0.2rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
}

.views[hidden] {
	display: none;
}

.views button {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.85rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--body);
	font: 500 0.85rem var(--sans);
	cursor: pointer;
}

.views button[aria-pressed='true'] {
	background: var(--pill);
	color: var(--pill-ink);
}

.views svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Metro-style tiles: flat colour by type of contract (works orange, services blue,
   supplies green), white text, one large tile now and then. The whole tile opens the notice. */
.list.is-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	grid-auto-flow: dense;
	gap: 0.6rem;
	border-top: 0;
}

.list.is-cards .item {
	--tile: #475569;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-height: 12.5rem;
	padding: 1.1rem 1.15rem 1rem;
	border: 0;
	border-radius: 4px;
	background: var(--tile);
	color: #fff;
	transition: transform 0.15s, filter 0.15s;
}

.list.is-cards .item[hidden] {
	display: none;
}

.list.is-cards .item[data-kinds~='supplies'] {
	--tile: #047857;
}

.list.is-cards .item[data-kinds~='services'] {
	--tile: #1d4ed8;
}

.list.is-cards .item[data-kinds~='works'] {
	--tile: #c2410c;
}

.list.is-cards .item:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
}

.list.is-cards .item-title {
	display: -webkit-box;
	overflow: hidden;
	color: #fff;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.list.is-cards .item-title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.list.is-cards .item-title a:hover {
	text-decoration: none;
}

.list.is-cards .meta {
	display: -webkit-box;
	overflow: hidden;
	color: rgb(255 255 255 / 0.82);
	font-size: 0.8rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.list.is-cards .deadline {
	margin-top: auto;
	background: rgb(255 255 255 / 0.18);
	color: #fff;
}

.list.is-cards .empty {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.list.is-cards .item:nth-child(7n + 1) {
		grid-column: span 2;
	}

	.list.is-cards .item:nth-child(7n + 1) .item-title {
		font-size: 1.35rem;
		-webkit-line-clamp: 3;
	}
}

.live-dot {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-inline-end: 0.45rem;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 3px var(--green-line);
	vertical-align: 0.05em;
}

.list + .note {
	margin-top: 1rem;
}

/* ---------- panels, buttons, forms ---------- */

.panel {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.panel > * + * {
	margin-top: 1rem;
}

.panel-title {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 400;
}

.panel-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
}

.panel-row > * + * {
	margin-top: 0;
}

.panel-row p {
	margin-top: 0.4rem;
	color: var(--muted);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.6rem 1.3rem;
	border: 1px solid var(--pill);
	border-radius: 999px;
	background: var(--pill);
	color: var(--pill-ink);
	font: 600 0.95rem/1.2 var(--sans);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
	border-color: var(--btn-hover);
	background: var(--btn-hover);
}

.btn-ghost {
	border-color: var(--line-2);
	background: transparent;
	color: var(--ink);
}

.btn-ghost:hover {
	border-color: var(--ink);
	background: transparent;
}

.btn-small {
	min-height: 2.25rem;
	padding: 0.4rem 0.95rem;
	font-size: 0.85rem;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--ink);
	font-weight: 500;
}

label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--ink);
	font-weight: 500;
}

textarea,
input[type='search'] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: var(--field);
	color: var(--ink);
	font: inherit;
}

textarea::placeholder,
input::placeholder {
	color: var(--muted);
}

textarea:focus,
input:focus {
	border-color: var(--accent);
	outline: none;
}

.waitlist {
	display: grid;
	gap: 0.75rem;
	max-width: 40rem;
}

.waitlist label {
	margin-bottom: 0;
}

.waitlist .btn {
	justify-self: start;
}

.search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.search-field {
	position: relative;
	flex: 1 1 16rem;
}

.search-field input {
	width: 100%;
}

/* Browse a sector, under the company field (market page). */
.sectors {
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.sectors-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 0.85rem;
}

.sectors-title {
	color: var(--ink);
	font-weight: 600;
}

.sectors-where {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.sectors-where select {
	padding: 0.35rem 0.6rem;
	border: 1px solid var(--line-2);
	border-radius: 8px;
	background: var(--field);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

.sector-chips {
	margin-bottom: 0;
}

.company-more {
	justify-self: start;
}

/* Suggestions under the company field (market page). */
.suggest {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	left: 0;
	z-index: 20;
	max-height: 22rem;
	margin: 0;
	padding: 0.35rem;
	overflow-y: auto;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 18px 40px rgb(3 7 18 / 0.28);
	list-style: none;
}

:root[data-theme='light'] .suggest {
	box-shadow: 0 18px 40px rgb(11 20 48 / 0.12);
}

.suggest-option {
	display: grid;
	gap: 0.1rem;
	padding: 0.6rem 0.75rem;
	border-radius: 8px;
	cursor: pointer;
}

.suggest-option:hover,
.suggest-option[aria-selected='true'] {
	background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.suggest-name {
	color: var(--ink);
	font-weight: 500;
	overflow-wrap: anywhere;
}

.suggest-name mark {
	background: none;
	color: var(--accent);
	font-weight: 700;
}

.suggest-meta {
	color: var(--muted);
	font-size: 0.82rem;
}

.status {
	color: var(--muted);
	font-size: 0.9rem;
}

.status:empty {
	display: none;
}

/* ---------- agents: the task box ---------- */

.hero-agents .display {
	max-width: 13ch;
	font-size: clamp(2.75rem, 7.4vw, 5.75rem);
}

.spec {
	max-width: 36rem;
	margin: clamp(2.5rem, 6vh, 3.5rem) auto 0;
	overflow: hidden;
	border: 1px solid var(--line-2);
	border-radius: 18px;
	background: var(--spec-bg);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.spec textarea {
	display: block;
	min-height: 7.5rem;
	padding: 1.1rem 1.25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	resize: vertical;
}

.spec-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.65rem 0.7rem 0.65rem 1rem;
	background: var(--spec-bar);
}

/* The examples are long sentences: the menu shrinks so the button stays on the same line. */
.spec-bar select {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	padding: 0.35rem 0.25rem;
	border: 0;
	background: transparent;
	color: var(--body);
	font: 0.875rem var(--sans);
	text-overflow: ellipsis;
	cursor: pointer;
}

.spec-bar select option {
	background: var(--surface-2);
	color: var(--ink);
}

.spec-bar .btn {
	margin-inline-start: auto;
	min-height: 2.4rem;
	padding-block: 0.45rem;
}

.spec-bar .btn + .btn {
	margin-inline-start: 0;
}

.spec-bar .btn-demo {
	border-color: var(--fill);
	background: var(--fill);
	color: #fff;
}

.spec-bar .btn-demo:hover {
	border-color: var(--fill-hover);
	background: var(--fill-hover);
}

@media (max-width: 520px) {
	.spec-bar {
		flex-wrap: wrap;
	}

	.spec-bar select {
		flex-basis: 100%;
		width: 100%;
	}

	.spec-bar .btn {
		flex: 1;
		margin-inline-start: 0;
	}
}

/* ---------- agents: the demo, played step by step ---------- */

.demo {
	max-width: 44rem;
	margin: 2.5rem auto 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--line-2);
	border-radius: 18px;
	background: var(--surface);
	scroll-margin-top: 5rem;
}

.demo-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.demo-badge {
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--fill) 16%, transparent);
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.demo-title {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
	font-weight: 400;
}

.demo-note {
	margin-top: 0.4rem;
	color: var(--muted);
	font-size: 0.85rem;
}

.demo-steps {
	display: grid;
	gap: 1.1rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.demo-step {
	position: relative;
	display: grid;
	gap: 0.5rem;
	padding-inline-start: 2.1rem;
	animation: demo-in 0.35s ease-out both;
}

/* A spinner while the step works, a check once it is done. */
.demo-step::before {
	content: '';
	position: absolute;
	top: 0.15rem;
	left: 0;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid var(--line-2);
	border-top-color: var(--fill);
	border-radius: 50%;
	animation: demo-spin 0.8s linear infinite;
}

.demo-step.is-done::before {
	border-color: var(--green);
	background: var(--green)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
		center / 0.8rem no-repeat;
	animation: none;
}

.demo-step-title {
	color: var(--ink);
	font-weight: 600;
}

.demo-detail,
.demo-list,
.demo-check {
	color: var(--body);
	font-size: 0.95rem;
}

.demo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.demo-list {
	display: grid;
	gap: 0.3rem;
	margin: 0;
	padding-inline-start: 1.1rem;
}

.demo-list li {
	animation: demo-in 0.3s ease-out both;
}

.demo-mail {
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
}

.demo-mail-meta {
	color: var(--muted);
	font-size: 0.85rem;
}

.demo-mail-body {
	margin-top: 0.45rem;
	color: var(--ink);
}

.demo-draft-title {
	margin-top: 0.3rem;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.demo-draft {
	min-height: 3rem;
	padding: 0.9rem 1rem;
	border-inline-start: 3px solid var(--fill);
	border-radius: 0 12px 12px 0;
	background: color-mix(in srgb, var(--fill) 8%, transparent);
	color: var(--ink);
	white-space: pre-line;
}

.demo-check {
	color: var(--green);
	font-weight: 500;
}

.demo-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.demo-saved {
	margin-inline-end: auto;
	color: var(--ink);
	font-weight: 600;
}

@keyframes demo-in {
	from {
		opacity: 0;
		transform: translateY(0.4rem);
	}
}

@keyframes demo-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- the help robot, bottom right ---------- */

.bot {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.bot[hidden] {
	display: none;
}

.bot-launcher {
	display: grid;
	place-items: center;
	order: 2;
	width: 3.6rem;
	height: 3.6rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fill);
	color: #fff;
	box-shadow: 0 12px 30px rgb(37 99 235 / 0.45);
	cursor: pointer;
	transition: transform 0.2s, background-color 0.15s;
	animation: bot-float 4s ease-in-out infinite;
}

.bot-launcher:hover {
	background: var(--fill-hover);
	transform: scale(1.06);
}

.bot-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bot-icon .bot-fill {
	fill: currentColor;
	stroke: none;
}

.bot-eye {
	transform-box: fill-box;
	transform-origin: center;
	animation: bot-blink 5s infinite;
}

.bot-hint {
	order: 1;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: 0.85rem;
	font-weight: 500;
	box-shadow: 0 8px 20px rgb(3 7 18 / 0.18);
}

.bot.is-open .bot-hint {
	display: none;
}

.bot-panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.75rem);
	display: flex;
	flex-direction: column;
	width: min(23rem, calc(100vw - 2rem));
	height: min(34rem, calc(100dvh - 7rem));
	overflow: hidden;
	border: 1px solid var(--line-2);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: 0 24px 60px rgb(3 7 18 / 0.35);
	animation: demo-in 0.2s ease-out both;
}

.bot-panel[hidden] {
	display: none;
}

.bot-head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.85rem 0.9rem;
	background: var(--fill);
	color: #fff;
}

.bot-avatar {
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.16);
}

.bot-avatar .bot-icon {
	width: 24px;
	height: 24px;
}

.bot-title {
	color: #fff;
	font-weight: 600;
}

.bot-sub {
	color: rgb(255 255 255 / 0.8);
	font-size: 0.78rem;
}

.bot-close {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	margin-inline-start: auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.bot-close:hover {
	background: rgb(255 255 255 / 0.16);
}

.bot-close svg,
.bot-send svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bot-log {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1rem 0.9rem;
	overflow-y: auto;
}

.bot-msg {
	display: grid;
	gap: 0.45rem;
	max-width: 85%;
	padding: 0.6rem 0.8rem;
	border-radius: 14px;
	font-size: 0.92rem;
	line-height: 1.45;
	animation: demo-in 0.2s ease-out both;
}

.bot-msg.from-bot {
	align-self: flex-start;
	border-bottom-left-radius: 4px;
	background: var(--surface-2);
	color: var(--ink);
}

.bot-msg.from-user {
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	background: var(--fill);
	color: #fff;
}

.bot-link {
	justify-self: start;
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.bot-msg.is-typing {
	display: flex;
	gap: 0.3rem;
}

.bot-msg.is-typing span {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--muted);
	animation: bot-dot 1s infinite;
}

.bot-msg.is-typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.bot-msg.is-typing span:nth-child(3) {
	animation-delay: 0.3s;
}

.bot-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0 0.9rem 0.7rem;
}

.bot-chip {
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 500 0.8rem var(--sans);
	cursor: pointer;
}

.bot-chip:hover {
	border-color: var(--fill);
	color: var(--accent);
}

.bot-form {
	display: flex;
	gap: 0.5rem;
	padding: 0.7rem 0.8rem;
	border-top: 1px solid var(--line);
}

.bot-form input {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--field);
	color: var(--ink);
	font: inherit;
	font-size: 0.92rem;
}

.bot-form input:focus {
	border-color: var(--accent);
	outline: none;
}

.bot-send {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fill);
	color: #fff;
	cursor: pointer;
}

@keyframes bot-float {
	50% {
		transform: translateY(-4px);
	}
}

@keyframes bot-blink {
	0%,
	92%,
	100% {
		transform: scaleY(1);
	}

	95% {
		transform: scaleY(0.1);
	}
}

@keyframes bot-dot {
	50% {
		opacity: 0.3;
		transform: translateY(-2px);
	}
}

@media (max-width: 520px) {
	.bot-hint {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bot-launcher,
	.bot-eye,
	.demo-step::before {
		animation: none;
	}
}

.strip {
	padding-block: 2.5rem 1rem;
	text-align: center;
}

.strip-label {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.strip-names {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 2.5rem;
	margin-top: 1.1rem;
	color: var(--strip-ink);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.faqs {
	display: grid;
	gap: 0.75rem;
	max-width: 48rem;
}

.faq {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}

.faq summary {
	padding: 1rem 1.25rem;
	color: var(--ink);
	font-weight: 500;
	cursor: pointer;
}

.faq p {
	padding: 0 1.25rem 1.1rem;
	color: var(--muted);
}

/* ---------- rentals: a city, its photograph, the kinds of home as metro tiles ---------- */

.city-chips {
	margin-bottom: 1rem;
}

.city-chips[hidden] {
	display: none;
}

.city-banner {
	position: relative;
	height: clamp(10rem, 22vw, 15rem);
	margin-bottom: 0.75rem;
	overflow: hidden;
	border-radius: 4px;
	background: var(--surface-2);
}

.city-banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.city-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgb(3 7 18 / 0.75), rgb(3 7 18 / 0.15) 60%, transparent);
}

.city-banner-text {
	position: absolute;
	bottom: 1.25rem;
	left: clamp(1rem, 3vw, 2rem);
	z-index: 1;
}

.city-banner-name {
	color: #fff;
	font-family: var(--serif);
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	line-height: 1.05;
}

.city-banner-meta {
	margin-top: 0.3rem;
	color: rgb(255 255 255 / 0.88);
	font-size: 0.95rem;
}

.home-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 13rem;
	gap: 0.6rem;
}

.home-tile {
	--edge: #f97316;
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border-top: 4px solid var(--edge);
	border-radius: 4px;
	background: #1e293b;
	color: #fff;
}

.home-tile:nth-child(4n + 2) {
	--edge: #3b82f6;
}

.home-tile:nth-child(4n + 3) {
	--edge: #10b981;
}

.home-tile:nth-child(4n + 4) {
	--edge: #a855f7;
}

.home-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.home-tile:hover img {
	transform: scale(1.05);
}

.home-tile::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(3 7 18 / 0.88), rgb(3 7 18 / 0.25) 55%, transparent 80%);
}

.home-tile-body {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 0.2rem;
	padding: 1rem 1.1rem;
}

.home-tile-kicker {
	color: rgb(255 255 255 / 0.8);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.home-tile-title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.home-tile-text {
	display: -webkit-box;
	overflow: hidden;
	color: rgb(255 255 255 / 0.85);
	font-size: 0.85rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-tile-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 0.35rem;
	color: #93c5fd;
	font-size: 0.85rem;
	font-weight: 600;
}

/* The first tile is a large one, as on a metro start screen. */
.home-tile:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.home-tile:first-child .home-tile-title {
	font-size: 2rem;
}

.home-tiles + .note {
	margin-top: 1rem;
}

@media (max-width: 900px) {
	.home-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.home-tiles {
		grid-template-columns: 1fr;
		grid-auto-rows: 12rem;
	}

	.home-tile:first-child {
		grid-column: auto;
		grid-row: span 1;
	}

	.home-tile:first-child .home-tile-title {
		font-size: 1.4rem;
	}
}

/* Sub-tabs of the rentals page. */
.sub-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--line-2);
}

.sub-tabs[hidden],
.tab-panel[hidden],
.rents[hidden] {
	display: none;
}

.sub-tabs [role='tab'] {
	margin-bottom: -1px;
	padding: 0.7rem 1.1rem;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: var(--muted);
	font: 600 0.95rem var(--sans);
	cursor: pointer;
}

.sub-tabs [role='tab'][aria-selected='true'] {
	border-bottom-color: var(--fill);
	color: var(--ink);
}

.tab-panel + .tab-panel {
	margin-top: 2rem;
}

.sub-tabs:not([hidden]) ~ .tab-panel + .tab-panel {
	margin-top: 0;
}

/* The heading of each sub-tab. */
.tab-title {
	color: var(--ink);
	font-family: var(--serif);
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 400;
	line-height: 1.2;
}

/* Official rents: one photo card per kind of home for the chosen city. */
.rents {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.rents > .empty {
	grid-column: 1 / -1;
}

.rent {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--surface);
}

.rent-pic {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.rent-body {
	display: grid;
	gap: 0.3rem;
	padding: 1.1rem 1.25rem 1.3rem;
}

.rent-kind {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

/* Figures in the sans face: its digits sit on the line, the serif's do not. */
.rent-value {
	color: var(--ink);
	font: 700 clamp(2rem, 3vw, 2.5rem) / 1.1 var(--sans);
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: -0.02em;
}

/* The range between districts: a pale band from low to high, a dot on the estimate.
   --from, --to and --at are shares (0 to 1) of one scale shared by every card. */
.rent-range {
	position: relative;
	height: 8px;
	margin-block: 0.65rem 0.35rem;
	border-radius: 4px;
	background: var(--line);
}

.rent-range-band {
	position: absolute;
	inset-block: 0;
	left: calc(var(--from) * 100%);
	width: calc((var(--to) - var(--from)) * 100%);
	border-radius: 4px;
	background: var(--blue);
	opacity: 0.45;
}

.rent-range-mark {
	position: absolute;
	top: 50%;
	left: calc(var(--at) * 100%);
	width: 14px;
	height: 14px;
	border: 2px solid var(--surface);
	border-radius: 50%;
	background: var(--blue);
	transform: translate(-50%, -50%);
}

.rent-example {
	margin-top: 0.3rem;
	padding-top: 0.7rem;
	border-top: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
}

/* Every city compared: a thumbnail, the name, one bar for the small flat. */
.rent-table-note {
	margin: -0.35rem 0 0.9rem;
}

.rent-table {
	width: 100%;
	min-width: 38rem;
	border-collapse: collapse;
	background: var(--surface);
	font-size: 0.92rem;
	font-variant-numeric: lining-nums tabular-nums;
}

.rent-table th,
.rent-table td {
	padding: 0.5rem 1rem;
	border-bottom: 1px solid var(--line);
	text-align: start;
	vertical-align: middle;
	white-space: nowrap;
}

.rent-table thead th {
	padding-block: 0.8rem;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rent-table tbody tr:last-child > * {
	border-bottom: 0;
}

.rent-table tbody tr:hover,
.rent-table tbody tr[aria-current='true'] {
	background: var(--surface-2);
}

.rent-table tbody tr[aria-current='true'] > th {
	box-shadow: inset 4px 0 0 var(--blue);
}

.rent-city {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--ink);
	font-weight: 600;
}

.rent-city img {
	width: 4.25rem;
	height: 2.6rem;
	border-radius: 4px;
	object-fit: cover;
}

.rent-city:hover span {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.rent-bar-cell {
	width: 46%;
}

/* --w is the rent as a share (0 to 1) of the dearest city; the value sits at the bar's tip. */
.rent-bar-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 15rem;
}

.rent-bar {
	flex: none;
	width: calc((100% - 6.5rem) * var(--w));
	min-width: 2px;
	height: 12px;
	border-radius: 0 4px 4px 0;
	background: var(--blue);
}

.rent-bar-value {
	color: var(--ink);
	font-weight: 600;
}

/* Listings posted on Taallem: the photograph beside the waiting list. */
.taallem-panel {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: stretch;
	padding: 0;
	overflow: hidden;
}

.taallem-panel > * + * {
	margin-top: 0;
}

.taallem-pic {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 18rem;
	object-fit: cover;
}

.taallem-body {
	align-self: center;
	padding: clamp(1.25rem, 3vw, 2.25rem);
}

.taallem-body > * + * {
	margin-top: 1rem;
}

@media (max-width: 760px) {
	.taallem-panel {
		grid-template-columns: 1fr;
	}

	.taallem-pic {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

/* On a phone each city is a small card: no sideways scrolling, the column headings
   move into the cells (data-label). */
@media (max-width: 640px) {
	.rent-table {
		min-width: 0;
	}

	.rent-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.rent-table tbody tr {
		display: grid;
		gap: 0.3rem;
		padding: 0.85rem 1rem;
		border-bottom: 1px solid var(--line);
	}

	.rent-table tbody tr:last-child {
		border-bottom: 0;
	}

	.rent-table tbody tr[aria-current='true'] {
		box-shadow: inset 4px 0 0 var(--blue);
	}

	.rent-table tbody tr[aria-current='true'] > th {
		box-shadow: none;
	}

	.rent-table tbody th,
	.rent-table tbody td {
		padding: 0;
		border: 0;
		white-space: normal;
	}

	.rent-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
	}

	.rent-table tbody td::before {
		content: attr(data-label);
		color: var(--muted);
	}

	.rent-table tbody td.rent-bar-cell {
		display: block;
		width: auto;
	}

	.rent-table tbody td.rent-bar-cell::before {
		display: block;
		margin-bottom: 0.2rem;
	}

	.rent-bar-line {
		min-width: 0;
	}
}

@media (max-width: 520px) {
	.rent-pic {
		aspect-ratio: 2 / 1;
	}

	/* Three equal tabs on one row; a long label takes two lines. */
	.sub-tabs {
		flex-wrap: nowrap;
		gap: 0;
	}

	.sub-tabs [role='tab'] {
		flex: 1 1 0;
		padding: 0.6rem 0.35rem;
		font-size: 0.85rem;
		line-height: 1.25;
	}
}

/* City cards: the photograph on top (more specific than the card rules further down). */
.cities .city {
	padding: 0 0 1.25rem;
	overflow: hidden;
}

.cities .city > :not(.city-pic) {
	margin-inline: 1.25rem;
}

.city-pic {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin-bottom: 0.4rem;
	object-fit: cover;
}

/* ---------- rentals ---------- */

.cities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
}

.city {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.25rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
}

.city-name {
	font-family: var(--serif);
	font-size: 1.6rem;
	font-weight: 400;
}

.city .btn {
	align-self: flex-start;
	margin-top: 0.6rem;
}

.cities + .note {
	margin-top: 1.25rem;
}

.aids {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
}

.aid {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.aid-title {
	font-size: 1.1rem;
	font-weight: 600;
}

.aid p {
	color: var(--muted);
}

.aid .text-link {
	margin-top: auto;
	padding-top: 0.5rem;
	font-size: 0.9rem;
}

/* ---------- exchange rates ---------- */

.rates {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: 1rem;
	margin: 0 0 1rem;
}

.rate {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}

.rate dt {
	color: var(--muted);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.rate dd {
	margin: 0;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.6rem;
	font-variant-numeric: tabular-nums;
}

/* ---------- data sources table ---------- */

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.sources {
	width: 100%;
	min-width: 48rem;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.sources th,
.sources td {
	padding: 0.8rem 1rem;
	border-bottom: 1px solid var(--line);
	text-align: start;
	vertical-align: top;
}

.sources thead th {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sources tbody th {
	color: var(--ink);
	font-weight: 500;
}

.sources tbody tr:last-child > * {
	border-bottom: 0;
}

.sources a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--line-2);
	text-underline-offset: 0.2em;
}

.doors-list {
	display: grid;
	gap: 0.5rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.doors-list a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--line-2);
}

/* ---------- footer ---------- */

.foot {
	margin-top: 2rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.875rem;
}

.foot-inner {
	display: grid;
	gap: 0.75rem;
	padding-block: 2rem 2.5rem;
}

.foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
}

.foot-links a {
	color: var(--body);
}

.foot-links a:hover {
	color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
	}
}

@media print {
	.site-header,
	.spec,
	.waitlist,
	.search,
	.bot {
		display: none;
	}
}

/* ---------- right to left (Arabic pages: <html dir="rtl">) ----------
   Flex and grid follow the direction by themselves; what is placed by hand is mirrored here.
   Arabic letters are joined: no letter spacing, no capitals, no italics, a taller line. */

html[dir='rtl'] {
	--serif: 'Noto Naskh Arabic', 'IBM Plex Sans Arabic', Georgia, serif;
	--sans: 'IBM Plex Sans Arabic', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

html[dir='rtl'] body {
	line-height: 1.75;
}

html[dir='rtl'] body * {
	letter-spacing: normal !important;
}

html[dir='rtl'] :is(.search-group h3, .hv-tag, .slide-kicker, .pic-card-kicker, .tag, .demo-badge, .demo-draft-title,
		.strip-label, .home-tile-kicker, .rent-kind, .rent-table thead th, .sources thead th) {
	text-transform: none;
}

html[dir='rtl'] :is(.display em, .lead em) {
	font-style: normal;
}

html[dir='rtl'] :is(.display, .hv-h1, .slide-title, .pic-doors-title) {
	line-height: 1.35;
}

html[dir='rtl'] .skip {
	right: 1rem;
	left: auto;
}

html[dir='rtl'] .mobile-sub {
	margin: 0 0.75rem 0.4rem 0;
}

html[dir='rtl'] :is(.nav-sub-head, .mobile-sub-head) {
	text-transform: none;
}

html[dir='rtl'] .site-header:has(.nav-menu[open]) .brand-name,
html[dir='rtl'] .search-brand {
	background-image: linear-gradient(to left, #3b82f6, #10b981);
}

html[dir='rtl'] .search-box {
	padding: 0.9rem 1.5rem 0.9rem 1.1rem;
}

html[dir='rtl'] .spec-bar {
	padding: 0.65rem 1rem 0.65rem 0.7rem;
}

/* Arrows and chevrons point the way one reads: to the left. */
html[dir='rtl'] :is(.arrow, .chev, .carousel-arrow svg) {
	transform: scaleX(-1);
}

html[dir='rtl'] .edito-row:hover > .arrow {
	transform: scaleX(-1) translateX(4px);
}

html[dir='rtl'] :is(.pic-card:hover .chev, .text-link:hover .chev) {
	transform: scaleX(-1) translateX(3px);
}

html[dir='rtl'] .carousel-arrow.prev {
	right: 1rem;
	left: auto;
}

html[dir='rtl'] .carousel-arrow.next {
	right: auto;
	left: 1rem;
}

html[dir='rtl'] .demo-step::before {
	right: 0;
	left: auto;
}

html[dir='rtl'] .bot {
	right: auto;
	left: max(1rem, env(safe-area-inset-left));
}

html[dir='rtl'] .bot-panel {
	right: auto;
	left: 0;
}

html[dir='rtl'] .city-banner::after {
	background: linear-gradient(to left, rgb(3 7 18 / 0.75), rgb(3 7 18 / 0.15) 60%, transparent);
}

html[dir='rtl'] .city-banner-text {
	right: clamp(1rem, 3vw, 2rem);
	left: auto;
}

/* Latin names, codes and figures inside Arabic text keep their own order. */
html[dir='rtl'] :is(.stock-code, .coin-code, .fx-code, .lang-code, input[type='email']) {
	direction: ltr;
	unicode-bidi: isolate;
}
