/*
Theme system for Viejo Tucuman Archivo.
The palette, type scale and surfaces are intentionally centralized
so the site can evolve without scattering one-off overrides.
*/

:root {
	/* Core palette */
	--vt-bg: #e8d9c0;
	--vt-bg-deep: #cfb792;
	--vt-paper: #f4e8d2;
	--vt-paper-strong: #fbf2df;
	--vt-paper-muted: #dbc3a1;
	--vt-surface: rgba(251, 244, 230, 0.9);
	--vt-surface-strong: rgba(247, 239, 222, 0.98);
	--vt-ink: #2d2117;
	--vt-ink-soft: #5e4a37;
	--vt-ink-muted: #78624d;
	--vt-line: rgba(73, 52, 35, 0.18);
	--vt-line-strong: rgba(73, 52, 35, 0.28);
	--vt-accent: #9b4430;
	--vt-accent-strong: #7f3525;
	--vt-accent-soft: #b96b4b;
	--vt-olive: #6f7250;
	--vt-gold: #b48a54;

	/* Typography */
	--vt-font-display: "Cormorant Garamond", Georgia, serif;
	--vt-font-body: "Source Serif 4", Georgia, serif;
	--vt-font-ui: "Source Sans 3", "Segoe UI", sans-serif;

	/* Radius and elevation */
	--vt-radius-sm: 8px;
	--vt-radius-md: 14px;
	--vt-radius-lg: 24px;
	--vt-shadow-soft: 0 14px 30px rgba(71, 47, 25, 0.08);
	--vt-shadow-paper: 0 24px 48px rgba(79, 57, 35, 0.12);
	--vt-shadow-inset: inset 0 1px 0 rgba(255, 249, 238, 0.75);

	/* Layout */
	--vt-width: min(1320px, calc(100vw - 48px));
	--vt-width-reading: min(860px, calc(100vw - 48px));
	--vt-space-1: 0.375rem;
	--vt-space-2: 0.625rem;
	--vt-space-3: 0.875rem;
	--vt-space-4: 1.125rem;
	--vt-space-5: 1.5rem;
	--vt-space-6: 2rem;
	--vt-space-7: 2.75rem;
	--vt-space-8: 3.75rem;
	--vt-space-9: 5rem;

	/* Texture layers */
	--vt-paper-wash:
		radial-gradient(circle at 18% 14%, rgba(255, 248, 233, 0.72), transparent 24%),
		radial-gradient(circle at 82% 10%, rgba(133, 85, 46, 0.13), transparent 22%),
		radial-gradient(circle at 73% 77%, rgba(109, 77, 44, 0.16), transparent 32%),
		radial-gradient(circle at 10% 88%, rgba(149, 105, 61, 0.11), transparent 24%),
		linear-gradient(135deg, rgba(255, 248, 236, 0.18), rgba(101, 63, 32, 0.08));
	--vt-grain:
		linear-gradient(115deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
		repeating-linear-gradient(
			0deg,
			rgba(87, 63, 39, 0.018) 0,
			rgba(87, 63, 39, 0.018) 1px,
			transparent 1px,
			transparent 3px
		),
		repeating-linear-gradient(
			90deg,
			rgba(110, 80, 52, 0.015) 0,
			rgba(110, 80, 52, 0.015) 1px,
			transparent 1px,
			transparent 4px
		);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--vt-font-body);
	font-size: 1.04rem;
	line-height: 1.7;
	color: var(--vt-ink);
	background:
		var(--vt-paper-wash),
		linear-gradient(180deg, #f0e1c7 0%, #d6bd98 52%, #e5d2b2 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	opacity: 0.72;
	background: var(--vt-grain);
	mix-blend-mode: multiply;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 24%, transparent 0, transparent 32%, rgba(46, 30, 17, 0.09) 100%),
		linear-gradient(180deg, rgba(79, 48, 22, 0.08), transparent 18%, transparent 78%, rgba(79, 48, 22, 0.12));
	mix-blend-mode: multiply;
}

a {
	color: var(--vt-accent-strong);
	text-decoration-color: rgba(155, 68, 48, 0.36);
	text-underline-offset: 0.18em;
	transition:
		color 180ms ease,
		text-decoration-color 180ms ease,
		opacity 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease,
		box-shadow 220ms ease,
		transform 220ms ease;
}

a:hover,
a:focus-visible {
	color: var(--vt-accent);
	text-decoration-color: rgba(155, 68, 48, 0.7);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid rgba(155, 68, 48, 0.72);
	outline-offset: 3px;
}

.site-shell {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}

.site-header,
.site-main,
.site-footer {
	position: relative;
	z-index: 1;
	width: 100%;
}

/* Header as restored document banner */
.site-header {
	background:
		linear-gradient(180deg, rgba(251, 243, 227, 0.97), rgba(232, 214, 183, 0.94));
	border-bottom: 1px solid rgba(82, 56, 33, 0.22);
	box-shadow: 0 10px 28px rgba(88, 62, 37, 0.1);
}

.site-header__veil {
	height: 10px;
	background:
		linear-gradient(90deg, rgba(180, 138, 84, 0), rgba(180, 138, 84, 0.48), rgba(180, 138, 84, 0)),
		linear-gradient(180deg, rgba(111, 114, 80, 0.14), rgba(111, 114, 80, 0));
}

.site-header__inner,
.site-footer__inner {
	width: var(--vt-width);
	margin: 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vt-space-5);
	padding: 1.4rem 0 1.2rem;
}

.site-header__rule {
	height: 14px;
	background:
		linear-gradient(180deg, rgba(108, 76, 48, 0.06), rgba(108, 76, 48, 0)),
		repeating-linear-gradient(
			90deg,
			transparent 0,
			transparent 12px,
			rgba(126, 92, 60, 0.08) 12px,
			rgba(126, 92, 60, 0.08) 13px
		);
	border-top: 1px solid rgba(95, 66, 41, 0.12);
}

.site-branding__link {
	display: inline-flex;
	align-items: center;
}

.site-branding__logo {
	width: auto;
	height: clamp(42px, 5.2vw, 64px);
	filter: drop-shadow(0 3px 8px rgba(64, 45, 29, 0.06));
}

.site-branding__title {
	font-family: var(--vt-font-display);
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	letter-spacing: 0.05em;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0;
	font-family: var(--vt-font-ui);
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--vt-ink-soft);
	letter-spacing: 0.02em;
	text-decoration: none;
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(155, 68, 48, 0.7), transparent);
	transform: scaleX(0.2);
	opacity: 0;
	transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
	transform: scaleX(1);
	opacity: 1;
}

.site-nav__info-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0 !important;
	border: 1px solid rgba(110, 80, 52, 0.42);
	border-radius: 999px;
	font-family: var(--vt-font-body);
	font-size: 1.16rem;
	font-style: italic;
	font-weight: 600;
	line-height: 1;
	color: var(--vt-ink-soft);
	background: rgba(249, 241, 226, 0.64);
	box-shadow: inset 0 1px 0 rgba(255, 249, 239, 0.88);
	text-decoration: none;
}

.site-nav__info-link::after {
	display: none;
}

.site-nav__info-link:hover,
.site-nav__info-link:focus-visible {
	color: var(--vt-accent-strong);
	border-color: rgba(127, 53, 37, 0.52);
	background: rgba(245, 234, 214, 0.94);
}

.site-nav__info-link--back {
	font-size: 1.05rem;
	font-style: normal;
}

.site-main {
	flex: 1 1 auto;
	padding: clamp(1rem, 2vw, 1.5rem) 0 0;
}

.is-front-page .site-main {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding-top: 0;
}

.is-static-page .site-main {
	padding-top: 0.35rem;
}

/* Editorial shell for text pages */
.document-shell {
	padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.document-shell--page {
	padding-top: clamp(0.7rem, 1.2vw, 1.2rem);
}

.document-shell__inner {
	width: var(--vt-width-reading);
	margin: 0 auto;
}

.document-shell__header {
	position: relative;
	margin-bottom: var(--vt-space-6);
	padding-bottom: var(--vt-space-5);
}

.document-shell__header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(240px, 38%);
	height: 1px;
	background: linear-gradient(90deg, rgba(155, 68, 48, 0.56), rgba(180, 138, 84, 0.18));
}

.document-shell__eyebrow,
.site-footer__eyebrow,
.vt-map-block__eyebrow {
	margin: 0 0 0.6rem;
	font-family: var(--vt-font-ui);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--vt-ink-muted);
}

.document-shell__title {
	margin: 0;
	font-family: var(--vt-font-display);
	font-size: clamp(2.4rem, 5vw, 4.25rem);
	line-height: 0.96;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--vt-ink);
	text-wrap: balance;
}

.document-shell__lead {
	max-width: 42rem;
	margin: 1rem 0 0;
	font-size: 1.14rem;
	color: var(--vt-ink-soft);
}

.document-card {
	position: relative;
	padding: clamp(1.6rem, 3vw, 2.2rem);
	background:
		radial-gradient(circle at top right, rgba(255, 249, 237, 0.55), transparent 30%),
		repeating-linear-gradient(
			-8deg,
			rgba(110, 79, 49, 0.018) 0,
			rgba(110, 79, 49, 0.018) 2px,
			transparent 2px,
			transparent 7px
		),
		linear-gradient(180deg, rgba(251, 242, 223, 0.98), rgba(235, 219, 190, 0.95));
	border: 1px solid rgba(99, 70, 47, 0.22);
	border-radius: var(--vt-radius-lg);
	box-shadow: var(--vt-shadow-paper), var(--vt-shadow-inset);
}

.document-card::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(145, 110, 77, 0.12);
	border-radius: calc(var(--vt-radius-lg) - 8px);
	pointer-events: none;
}

.document-card--reading .entry-content > *:first-child {
	margin-top: 0;
}

.document-card--reading .entry-content > *:last-child {
	margin-bottom: 0;
}

.archive-stack {
	display: grid;
	gap: 1.2rem;
}

.document-card__meta {
	margin: 0 0 0.55rem;
	font-family: var(--vt-font-ui);
	font-size: 0.88rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vt-ink-muted);
}

.document-card__meta--update {
	margin-bottom: 1rem;
}

.document-card__title {
	margin: 0 0 0.7rem;
	font-family: var(--vt-font-display);
	font-size: clamp(1.5rem, 3vw, 2.15rem);
	line-height: 1.06;
}

.document-card__title a {
	color: var(--vt-ink);
	text-decoration: none;
}

.document-card__title a:hover,
.document-card__title a:focus-visible {
	color: var(--vt-accent);
}

.document-card__excerpt,
.entry-content,
.entry-content p,
.entry-content li {
	color: var(--vt-ink-soft);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--vt-font-display);
	line-height: 1.08;
	color: var(--vt-ink);
	text-wrap: balance;
}

.entry-content h2 {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	margin-top: 2rem;
}

.entry-content h3 {
	font-size: clamp(1.35rem, 2.6vw, 1.8rem);
	margin-top: 1.8rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin: 0 0 1.15rem;
}

.entry-content blockquote {
	padding: 1rem 1.2rem;
	background: rgba(236, 223, 201, 0.56);
	border-left: 3px solid rgba(155, 68, 48, 0.4);
	border-radius: 0 12px 12px 0;
}

.entry-content hr {
	height: 1px;
	border: 0;
	background: linear-gradient(90deg, rgba(180, 138, 84, 0), rgba(180, 138, 84, 0.5), rgba(180, 138, 84, 0));
	margin: 2rem 0;
}

/* Home map staged as a curated atlas sheet */
.home-map {
	position: relative;
	width: 100%;
	flex: 0 0 auto;
	padding: 0;
}

.home-map::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(53, 31, 16, 0.18), transparent 16%, transparent 82%, rgba(53, 31, 16, 0.2)),
		linear-gradient(90deg, rgba(48, 28, 14, 0.12), transparent 10%, transparent 90%, rgba(48, 28, 14, 0.12));
}

.map-stage {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.vt-map-block {
	position: relative;
	display: block;
}

.vt-map-block__panel {
	position: absolute;
	left: clamp(1rem, 2vw, 1.8rem);
	top: clamp(1rem, 2vw, 1.8rem);
	z-index: 500;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: min(390px, calc(100vw - 2rem));
	padding: clamp(1rem, 2vw, 1.4rem);
	background:
		radial-gradient(circle at top left, rgba(255, 249, 237, 0.22), transparent 36%),
		linear-gradient(180deg, rgba(77, 48, 24, 0.78), rgba(47, 31, 18, 0.72));
	border: 1px solid rgba(236, 216, 181, 0.22);
	border-radius: 22px;
	box-shadow:
		0 18px 34px rgba(25, 15, 8, 0.24),
		inset 0 1px 0 rgba(255, 250, 242, 0.12);
	backdrop-filter: blur(5px);
}

.vt-map-block__panel h3 {
	margin: 0 0 0.6rem;
	font-family: var(--vt-font-display);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 0.98;
	color: rgba(248, 236, 214, 0.96);
}

.vt-map-block__panel p:last-child {
	margin-bottom: 0;
	color: rgba(238, 220, 190, 0.78);
}

.vt-map-block__eyebrow {
	color: rgba(235, 214, 180, 0.72);
}

.vt-map {
	position: relative;
	border-top: 1px solid rgba(81, 53, 30, 0.22);
	border-bottom: 1px solid rgba(81, 53, 30, 0.26);
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	overflow: hidden;
	box-shadow:
		inset 0 0 0 1px rgba(255, 247, 233, 0.1),
		0 18px 42px rgba(38, 23, 12, 0.18);
}

.vt-map::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 400;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(255, 250, 240, 0.05), rgba(92, 64, 40, 0.08)),
		repeating-linear-gradient(
			90deg,
			transparent 0,
			transparent 43px,
			rgba(116, 88, 56, 0.02) 43px,
			rgba(116, 88, 56, 0.02) 44px
		),
		radial-gradient(circle at 50% 35%, transparent 0, transparent 56%, rgba(34, 22, 12, 0.12) 100%);
	mix-blend-mode: multiply;
}

.leaflet-container {
	font-family: var(--vt-font-ui);
	background: #d8c3a0;
	color: var(--vt-ink);
}

.leaflet-control-zoom,
.leaflet-control-layers {
	border: 1px solid rgba(94, 67, 44, 0.16) !important;
	border-radius: 14px !important;
	box-shadow: 0 10px 22px rgba(77, 54, 32, 0.12) !important;
	overflow: hidden;
}

.leaflet-control-zoom a,
.leaflet-control-layers-toggle {
	background: rgba(249, 241, 227, 0.96) !important;
	color: var(--vt-ink-soft) !important;
	border-bottom: 1px solid rgba(94, 67, 44, 0.12) !important;
}

.leaflet-control-zoom a:last-child {
	border-bottom: 0 !important;
}

.leaflet-control-zoom a:hover,
.leaflet-control-layers-toggle:hover {
	background: rgba(238, 226, 204, 0.96) !important;
	color: var(--vt-accent-strong) !important;
}

.leaflet-control-layers-expanded {
	padding: 0.95rem 1rem !important;
	min-width: 178px;
	background: rgba(249, 241, 227, 0.97) !important;
}

.leaflet-control-layers-overlays label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.2rem 0;
	font-family: var(--vt-font-ui);
	font-size: 0.98rem;
	color: var(--vt-ink-soft);
}

.leaflet-control-layers-selector {
	accent-color: var(--vt-accent);
}

.leaflet-tooltip.vt-map-tooltip {
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(95, 66, 41, 0.14);
	border-radius: 10px;
	background: rgba(250, 242, 227, 0.96);
	color: var(--vt-ink);
	box-shadow: 0 10px 18px rgba(66, 47, 28, 0.12);
	font-family: var(--vt-font-ui);
	font-size: 0.86rem;
}

.leaflet-bar a,
.leaflet-bar a:hover {
	width: 34px;
	height: 34px;
	line-height: 34px;
}

/* Lightbox as archival contact sheet */
.vt-lightbox[hidden] {
	display: none;
}

.vt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.vt-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(34, 24, 16, 0.68);
	backdrop-filter: blur(4px);
}

.vt-lightbox__dialog {
	position: relative;
	width: min(1120px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	margin: 12px auto;
	padding: clamp(1rem, 2vw, 1.5rem);
	border: 1px solid rgba(101, 72, 44, 0.2);
	border-radius: 26px;
	background:
		repeating-linear-gradient(
			0deg,
			rgba(103, 71, 43, 0.016) 0,
			rgba(103, 71, 43, 0.016) 2px,
			transparent 2px,
			transparent 6px
		),
		linear-gradient(180deg, rgba(251, 244, 231, 0.98), rgba(226, 208, 178, 0.98));
	box-shadow: 0 22px 46px rgba(21, 14, 10, 0.28);
	overflow: auto;
}

.vt-lightbox__close {
	position: sticky;
	top: 0;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(95, 66, 41, 0.18);
	border-radius: 999px;
	background: rgba(244, 235, 220, 0.95);
	color: var(--vt-ink-soft);
	cursor: pointer;
}

.vt-lightbox__close:hover,
.vt-lightbox__close:focus-visible {
	background: rgba(230, 217, 193, 0.98);
	color: var(--vt-accent-strong);
}

.vt-lightbox__header {
	margin-bottom: 1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid rgba(118, 88, 59, 0.14);
}

.vt-lightbox__header h2 {
	margin: 0 0 0.35rem;
	font-family: var(--vt-font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 0.98;
}

.vt-lightbox__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.vt-lightbox__item {
	padding: 0.95rem;
	background: rgba(252, 247, 237, 0.78);
	border: 1px solid rgba(101, 72, 44, 0.12);
	border-radius: 18px;
	box-shadow: inset 0 1px 0 rgba(255, 251, 245, 0.75);
}

.vt-lightbox__item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 0.8rem;
	border: 1px solid rgba(101, 72, 44, 0.12);
	box-shadow: 0 10px 18px rgba(72, 50, 29, 0.1);
	background: rgba(228, 213, 187, 0.5);
}

.vt-lightbox__item h3 {
	margin: 0 0 0.35rem;
	font-family: var(--vt-font-display);
	font-size: 1.25rem;
	line-height: 1.02;
}

.vt-lightbox__item p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--vt-ink-muted);
}

/* Footer with quiet institutional tone */
.site-footer {
	margin-top: auto;
	padding: 0 0 1rem;
}

.site-footer::before {
	content: "";
	display: block;
	height: 14px;
	background:
		linear-gradient(180deg, rgba(108, 76, 48, 0.06), rgba(108, 76, 48, 0)),
		repeating-linear-gradient(
			90deg,
			transparent 0,
			transparent 12px,
			rgba(126, 92, 60, 0.08) 12px,
			rgba(126, 92, 60, 0.08) 13px
		);
	border-top: 1px solid rgba(95, 66, 41, 0.12);
}

.site-footer__inner {
	position: relative;
	padding: 0 0 0;
}

.site-footer__inner::before {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	margin-bottom: 1rem;
	background: linear-gradient(90deg, rgba(180, 138, 84, 0), rgba(126, 92, 60, 0.45), rgba(180, 138, 84, 0));
}

.site-footer__content {
	padding: 1.1rem 1.2rem 1.3rem;
	background: rgba(58, 41, 26, 0.9);
	border: 1px solid rgba(255, 241, 216, 0.08);
	border-radius: 18px 18px 0 0;
	box-shadow: 0 14px 28px rgba(48, 32, 19, 0.2);
	text-align: center;
}

.site-footer__eyebrow {
	color: rgba(244, 226, 197, 0.68);
}

.site-footer__title {
	margin: 0;
	color: rgba(248, 239, 224, 0.92);
	font-family: var(--vt-font-ui);
	font-size: 0.94rem;
	text-align: center;
}

.site-footer__title a {
	color: rgba(255, 233, 188, 0.96);
}

/* Forms and utility components */
button,
.button,
input[type="submit"] {
	border-radius: 999px;
	border: 1px solid rgba(105, 73, 46, 0.2);
	background: linear-gradient(180deg, rgba(247, 237, 220, 0.96), rgba(234, 220, 197, 0.96));
	box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.8);
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid rgba(103, 73, 46, 0.16);
	border-radius: 14px;
	background: rgba(250, 244, 232, 0.9);
	color: var(--vt-ink);
	box-shadow: inset 0 1px 0 rgba(255, 251, 243, 0.9);
}

input::placeholder,
textarea::placeholder {
	color: rgba(120, 98, 77, 0.74);
}

/* Responsive tuning keeps the atmosphere without crowding mobile */
@media (max-width: 1040px) {
	.vt-map-block__panel {
		width: min(360px, calc(100vw - 2rem));
	}
}

@media (max-width: 780px) {
	:root {
		--vt-width: calc(100vw - 24px);
		--vt-width-reading: calc(100vw - 24px);
	}

	.site-header__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 1rem 0 0.95rem;
	}

	.site-nav__list {
		flex-wrap: nowrap;
		gap: 0;
	}

	.site-nav {
		margin-left: auto;
		flex: 0 0 auto;
	}

	.site-branding {
		flex: 1 1 auto;
		min-width: 0;
	}

	.site-branding__link {
		width: 100%;
	}

	.map-stage {
		padding: 0;
	}

	.vt-map {
		height: calc(100svh - 228px) !important;
		min-height: 0;
	}

	.document-card,
	.vt-map-block__panel {
		border-radius: 18px;
	}

	.vt-lightbox__dialog {
		border-radius: 18px;
	}

	.vt-map-block__panel {
		left: 0.8rem;
		right: 0.8rem;
		top: 0.8rem;
		width: auto;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 1rem;
	}

	.site-header__inner {
		gap: 0.75rem;
	}

	.site-branding__logo {
		height: 44px;
	}

	.document-shell {
		padding-top: 1.4rem;
	}

	.document-shell__title {
		font-size: clamp(2rem, 10vw, 2.8rem);
	}

	.vt-map {
		height: calc(100svh - 210px) !important;
		min-height: 0;
	}

	.leaflet-control-zoom,
	.leaflet-control-layers {
		transform: scale(0.95);
		transform-origin: top right;
	}

	.site-footer__content {
		padding: 1rem;
		border-radius: 16px 16px 0 0;
	}
}
