@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	--bg: #214141;
	--accent: #663300;
	--panel: #ffffff;
	--soft: #f4ecd9;
	--border: #e9e2cc;
	--text: #111111;
	--link: #284d4d;
	--linkHover: #400020;
	--font-sans: 'Manrope', Arial, Helvetica, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
}

body,
button,
input,
select,
textarea {
	font-family: var(--font-sans);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover {
	color: var(--linkHover);
	text-decoration: underline;
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Page transition (simple fade between navigations)
   Fade the body over a stable light html background for a lighter transition. */
html {
	background: var(--soft);
}

html.page-transition body {
	transition: opacity 220ms ease;
}

html.page-transition.is-leaving body {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	html.page-transition body {
		transition: none;
	}
}

.hero {
	background: var(--bg);
}

.hero img {
	width: 100%;
	max-height: 300px;
	object-fit: cover;
}

.welcome {
	background: var(--soft);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.welcome-inner {
	padding: 12px 0;
	text-align: center;
}

.welcome h1 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	color: #633232;
}

.welcome .today {
	margin-top: 6px;
	font-size: 17px;
}

.site-nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--panel);
	border-bottom: 1px solid var(--border);
	/* Override legacy pages' global `a { font-family: ... }` rules */
	font-family: var(--font-sans);
	font-size: 15px;
}

.site-nav a,
.site-nav button {
	font-family: inherit;
}

/* Give the navigation more horizontal room than the main page content */
.site-nav .container {
	max-width: 1600px;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
}

.brand {
	color: var(--link);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.brand-logo {
	width: 28px;
	height: 28px;
	border-radius: 6px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nav-toggle {
	appearance: none;
	border: 1px solid var(--border);
	background: var(--panel);
	color: var(--text);
	padding: 8px 10px;
	border-radius: 8px;
	font: inherit;
	cursor: pointer;
}

/* Mobile hamburger icon for the Menu toggle */
@media (max-width: 1280px) {
	.nav-toggle {
		width: 42px;
		height: 38px;
		padding: 0;
		overflow: hidden;
		text-indent: -9999px;
		position: relative;
	}
	.nav-toggle::before {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 18px;
		height: 2px;
		background: var(--text);
		transform: translate(-50%, -50%);
		box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
		border-radius: 1px;
	}
}

.nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	align-items: center;
}

.nav-links li {
	display: flex;
	align-items: center;
}

.nav-links li + li::before {
	content: "|";
	margin: 0 16px;
	opacity: 0.55;
}

.nav-links a {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 8px 6px;
	white-space: nowrap;
}

.nav-links a[aria-current="page"] {
	color: var(--linkHover);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Dropdown submenu (used under "Választások") */
.nav-links .has-submenu {
	position: relative;
}

/* Small hover buffer to avoid losing the submenu when moving the cursor down */
.nav-links .has-submenu::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 10px;
}

.nav-links .subnav {
	list-style: none;
	margin: 0;
	padding: 6px;
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	min-width: 280px;
	z-index: 1100;
}

.nav-links .has-submenu:hover .subnav,
.nav-links .has-submenu:focus-within .subnav {
	display: block;
}

.nav-links .subnav li + li::before {
	content: none !important;
}

.nav-links .subnav a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	transition: background-color 140ms ease, color 140ms ease;
}

.nav-links .subnav a:hover {
	background: rgba(102, 51, 0, 0.12);
	color: #633232;
	text-decoration: underline;
}

.nav-links a:focus-visible,
.nav-toggle:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.medical-page .page,
.map-page .page,
.sights-page .page,
.history-page .page {
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 32%),
		linear-gradient(180deg, #f2efe4 0%, #ece4cf 100%);
}

.medical-shell,
.map-shell,
.sights-shell,
.history-shell,
.medical-main-stack,
.map-main-stack,
.sights-main-stack,
.history-main-stack {
	display: grid;
	gap: 18px;
}

.map-hero {
	margin-bottom: 16px;
}

.map-shell {
	gap: 30px;
}

.map-hero .card-body {
	padding: 18px 18px 26px;
}

.map-layout {
	margin-top: 0;
}

.medical-hero-grid,
.map-hero-grid,
.sights-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
	gap: 24px;
	align-items: start;
}

.medical-contact-card,
.medical-info-panel,
.map-link-group,
.sight-item {
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: #fcfbf7;
}

.medical-notice {
	display: grid;
	gap: 10px;
	margin-top: 18px;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(130, 110, 68, 0.18);
}

.medical-notice p,
.medical-contact-card p,
.map-link-group p,
.sight-item p {
	margin: 0;
}

.medical-highlight {
	color: #7c2d12;
	font-weight: 700;
}

.medical-quick-list,
.medical-resource-list,
.map-resource-list,
.sights-side-links {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 8px;
}

.medical-doc-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fcf4dd;
	border: 1px solid var(--border);
	font-weight: 800;
	text-decoration: none !important;
}

.medical-doc-link:hover,
.medical-doc-link:focus-visible {
	text-decoration: underline !important;
}

.medical-banner,
.map-main-image,
.map-preview-link,
.sights-hero-link,
.sights-gallery-link,
.sights-side-photo,
.history-side-photo {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: #ffffff;
}

.medical-banner img,
.map-main-image img,
.map-preview-link img,
.sights-hero-link img,
.sights-gallery-link img,
.sights-side-photo img,
.history-side-photo img,
.history-hero-image {
	display: block;
	width: 100%;
	height: auto;
}

.medical-info-grid,
.map-link-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: start;
}

.map-link-groups-sidebar {
	grid-template-columns: 1fr;
}

.medical-subtitle,
.map-subtitle {
	margin: 0 0 10px;
	font-size: 18px;
	color: #633232;
}

.map-mini-preview {
	display: grid;
	gap: 10px;
	padding: 10px;
	text-decoration: none !important;
	text-align: center;
	font-weight: 700;
}

.map-preview-image {
	max-height: 240px;
	object-fit: cover;
}

.sights-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}

.sight-item {
	line-height: 1.65;
}

.sights-side-gallery {
	display: grid;
	gap: 12px;
}

.sights-side-links {
	padding-left: 18px;
}

.history-hero {
	overflow: hidden;
}

.history-hero-image {
	max-height: 260px;
	object-fit: cover;
	border-bottom: 1px solid var(--border);
}

.history-hero-content {
	padding: 18px 18px 20px;
}

.history-content p {
	margin: 0 0 16px;
	line-height: 1.72;
}

.history-book-card {
	background: linear-gradient(180deg, #fcf8ee 0%, #f5ecd7 100%);
}

.history-small-note {
	color: #6b4b1e;
	font-weight: 700;
}

.history-link-list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 10px;
}

.history-link-list a {
	font-weight: 600;
}

.history-side-gallery {
	display: grid;
	gap: 12px;
}

.history-image-caption {
	margin: -2px 0 6px;
	text-align: center;
	font-style: italic;
	color: #5c4930;
}

@media (max-width: 1180px) {
	.medical-hero-grid,
	.map-hero-grid,
	.sights-hero-grid,
	.medical-info-grid,
	.map-link-groups {
		grid-template-columns: 1fr;
	}
}

.promo {
	background: var(--panel);
	border-bottom: 1px solid var(--border);
}

.promo-inner {
	padding: 12px 0;
	display: flex;
	justify-content: center;
}

.page {
	background: transparent;
	padding: 16px 0 28px;
}

.layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 18px;
}

.card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 160ms ease;
}

.card:hover,
.card:focus-within {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.card-header {
	background: var(--accent);
	color: #ffffff;
	padding: 12px 14px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
}

.card-body {
	padding: 12px;
}

/* Help legacy tables (e.g. PDF listings) stay usable in cards on small screens */
.card-body.content {
	padding: 16px;
	overflow-x: auto;
}

.card-body.content table {
	max-width: 100%;
}

.card-body.content img {
	max-width: 100%;
	height: auto;
}

.content h2 {
	margin: 0 0 8px 0;
	font-size: 22px;
}

.content p {
	margin: 0 0 10px 0;
}

.about-text {
	text-align: justify;
	hyphens: auto;
}

/* Long "Településünkről" text needs more breathing room */
.card-body.about-text {
	padding: 20px;
}

.card-body.about-text > h2 {
	margin-top: 0;
	margin-bottom: 12px;
}

.about-text p {
	margin: 0 0 12px 0;
	line-height: 1.75;
}

.list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.list li {
	padding: 10px 0;
	border-bottom: 1px dashed var(--border);
}

.list li:last-child {
	border-bottom: 0;
}

.grid3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

/* Gallery tiles (kepek.html) */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.album-tile {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.6);
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.album-tile:hover,
.album-tile:focus-visible {
	transform: translateY(-2px);
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.78);
}

.album-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--panel);
}

.album-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 220ms ease;
}

.album-tile:hover .album-thumb img {
	transform: scale(1.06);
}

.album-title {
	font-weight: 800;
	letter-spacing: 0.01em;
	text-align: center;
}

.gallery-shell {
	padding-top: 8px;
	display: grid;
	gap: 12px;
}

.gallery-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
}

.gallery-hero-image {
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	border-radius: 22px;
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.gallery-section-title {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 1.25;
	color: #1f3131;
}

.season-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.season-tile {
	position: relative;
	display: grid;
	grid-template-columns: minmax(108px, 156px) 1fr;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,244,235,0.98));
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.season-tile:hover,
.season-tile:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
	border-color: #d5c4a4;
	text-decoration: none;
}

.season-thumb {
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.8);
	box-shadow: 0 10px 18px rgba(0,0,0,0.1);
}

.season-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.season-tile:hover .season-thumb img {
	transform: scale(1.06);
}

.season-content {
	display: grid;
	gap: 6px;
	align-content: center;
}

.season-kicker {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #7a6a54;
}

.season-title {
	font-size: 23px;
	line-height: 1.1;
	color: #1f3131;
}

.season-text {
	font-size: 13px;
	line-height: 1.55;
	color: #445757;
}

.season-spring {
	background: linear-gradient(135deg, rgba(241, 250, 238, 0.98), rgba(231, 245, 222, 0.98));
}

.season-summer {
	background: linear-gradient(135deg, rgba(255, 247, 214, 0.98), rgba(255, 237, 184, 0.98));
}

.season-autumn {
	background: linear-gradient(135deg, rgba(252, 236, 217, 0.98), rgba(241, 217, 190, 0.98));
}

.season-winter {
	background: linear-gradient(135deg, rgba(237, 245, 252, 0.98), rgba(221, 234, 245, 0.98));
}

.gallery-grid-fancy {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.album-tile-fancy {
	padding: 0;
	gap: 0;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,235,0.98));
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.album-tile-fancy .album-thumb {
	aspect-ratio: 4 / 3;
	border: 0;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
}

.album-meta {
	display: grid;
	gap: 8px;
	padding: 12px;
}

.album-tile-fancy .album-title {
	text-align: left;
	font-size: 17px;
	color: #1f3131;
}

.album-tile-fancy:hover,
.album-tile-fancy:focus-visible {
	text-decoration: none;
}

.album-tile-fancy:hover .album-title,
.album-tile-fancy:focus-visible .album-title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.album-text {
	font-size: 13px;
	line-height: 1.55;
	color: #4d5c5c;
	text-decoration: none !important;
}

@media (max-width: 1280px) {
	.gallery-grid-fancy {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}
}

/* Logo grid (palyazatok.html) */
.logo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	align-items: center;
	justify-items: center;
}

.logo-grid a {
	display: block;
}

.logo-grid img {
	max-width: 100%;
	height: auto;
}

/* Back-to-top button (bottom-right) */
.back-to-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1200;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.86);
	color: var(--link);
	display: none;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.back-to-top.is-visible {
	display: flex;
}

.back-to-top:hover {
	color: var(--linkHover);
}

.back-to-top:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Compact year + issues table (used on Hírmondó) */
.issues-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--border);
	background: var(--panel);
}

.issues-table th,
.issues-table td {
	border: 1px solid var(--border);
	padding: 10px 12px;
	vertical-align: top;
}

.issues-table thead th {
	background: var(--soft);
	font-weight: 700;
}

.issues-table tbody th {
	white-space: nowrap;
}

.issues-table td a {
	display: inline-block;
	margin: 2px 10px 2px 0;
}

.issues-table td a + a::before {
	content: "|";
	opacity: 0.6;
	margin-right: 10px;
	margin-left: 0;
}

/* Simple two-column data table (used on Választások) */
.data-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--border);
	background: var(--panel);
}

.data-table th,
.data-table td {
	border: 1px solid var(--border);
	padding: 10px 12px;
	vertical-align: top;
}

.data-table th {
	background: var(--soft);
	font-weight: 700;
	text-align: left;
}

/* Közérdekű adatok (kozerdekuadatok.html) */
.kozerdeku-container {
	max-width: 1380px;
}

.kozerdeku-shell {
	padding-top: 8px;
	display: grid;
	gap: 18px;
}

.kozerdeku-page .page {
	padding-top: 24px;
	padding-bottom: 40px;
}

.kozerdeku-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.65fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
}

.kozerdeku-hero-side {
	display: flex;
	justify-content: center;
	align-items: center;
}

.kozerdeku-gdpr-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.kozerdeku-gdpr-link:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.kozerdeku-gdpr-image {
	max-width: 150px;
	height: auto;
}

.kozerdeku-section .card-body {
	padding: 18px;
}

.section-table th:first-child,
.section-table td:first-child {
	width: 66%;
}

.section-item-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	margin-bottom: 10px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(102, 51, 0, 0.12);
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.section-table th a,
.section-table td a {
	word-break: break-word;
}

.public-data {
	font-size: 14px;
	display: grid;
	gap: 18px;
}

.public-data h2 {
	margin: 24px 0 12px;
	font-size: 20px;
}

.public-data table,
.public-data table * {
	font-family: var(--font-sans), Arial, Helvetica, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.public-data a,
.public-data a:link,
.public-data a:visited {
	color: var(--link) !important;
	text-decoration: none !important;
}

.public-data a:hover {
	color: var(--linkHover) !important;
	text-decoration: underline !important;
}

.public-data .data-table th,
.public-data .data-table td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--border);
	background: transparent;
}

.public-data .data-table tbody th {
	font-weight: 600;
	color: #2f2b24;
}

.public-data .data-table thead th {
	background: #efe5cf;
	color: #633232;
	font-size: 13px !important;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--border);
}

.public-data .section-table {
	table-layout: fixed;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: #fcfbf7;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.public-data .section-col-text {
	width: 76%;
}

.public-data .section-col-links {
	width: 24%;
}

.public-data .data-table th,
.public-data .data-table td {
	width: auto !important;
}

.public-data .data-table tbody tr:nth-child(even) {
	background: rgba(99, 50, 50, 0.03);
}

.public-data .data-table tbody tr:last-child th,
.public-data .data-table tbody tr:last-child td {
	border-bottom: 0;
}

.jump-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.jump-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 76px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--soft);
	border: 1px solid var(--border);
	font-weight: 800;
	font-size: 16px;
	text-align: center;
}

.gdpr-bottom {
	margin-top: 18px;
	display: flex;
	justify-content: flex-end;
}

.gdpr-bottom img {
	width: 135px;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.card {
		transition: none;
	}
	.card:hover,
	.card:focus-within {
		transform: none;
	}
}

.sidebar .media {
	padding: 10px;
}

.footer {
	background: var(--bg);
	color: #ffffff;
	height: auto !important;
	min-height: 74px;
	padding: 14px 0 16px;
	font-family: var(--font-sans) !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Ensure legacy inline rules (e.g. `a { font-size:18px }`) cannot change footer typography */
.footer * {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

/* Legacy pages often define a:link/a:visited rules after our stylesheet.
	Make footer link styling deterministic and identical across all pages. */
.footer a,
.footer a:link,
.footer a:visited,
.footer a:active {
	color: #b0b0b0 !important;
	text-decoration: none !important;
}

.footer a:hover {
	color: #f1d98b !important;
	text-decoration: underline !important;
}

.footer .container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.footer-copy {
	opacity: 0.86;
	font-size: 14px !important;
	font-weight: 700;
	margin-top: 4px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	margin-bottom: 4px;
}

.footer-links a + a::before {
	content: "|";
	display: inline-block;
	margin-right: 14px;
	color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 980px) {
	.layout {
		grid-template-columns: 1fr;
	}
	.grid3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1280px) {
	.nav-links {
		display: none;
		width: 100%;
		padding-top: 8px;
		border-top: 1px solid var(--border);
		flex-wrap: wrap;
	}
	.nav-links.is-open {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.nav-links li + li::before {
		content: none;
	}

	.nav-links .subnav {
		display: none !important;
	}

	.nav-links.is-open .subnav {
		display: none !important;
	}
	.footer .container {
		white-space: normal;
	}
}

@media (min-width: 1281px) {
	.nav-inner {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
	}
	.site-nav .container {
		padding: 0 24px;
	}
	.nav-links {
		justify-content: center;
	}
	.nav-links li + li::before {
		margin: 0 12px;
	}

	.nav-toggle {
		display: none;
	}
}

.home-shell {
	padding-top: 8px;
}

.home-page .page {
	padding-top: 24px;
	padding-bottom: 40px;
}

.home-intro {
	background: linear-gradient(135deg, rgba(244, 236, 217, 0.98), rgba(255, 255, 255, 0.98));
}

.home-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
	gap: 24px;
	align-items: start;
	padding: 24px;
}

.home-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.home-intro-copy h2 {
	margin: 0 0 12px;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.15;
	color: #1f3131;
}

/* Generic hero intro blocks (top white "bevezető" cards on most pages) */
.card[class*="-hero"] h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.section-head h2 {
	margin: 0 0 12px;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.15;
	color: #1f3131;
}

/* Index intro main title: slightly more breathing room */
#home-intro-title {
	line-height: 1.22;
	margin: 0 0 16px;
}


.home-intro-copy p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.7;
	color: #294141;
}

.section-head p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.7;
	color: #294141;
}

.home-cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.button-primary,
.button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	text-align: center;
	gap: 8px;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-primary {
	background: linear-gradient(135deg, #7b4a17, var(--accent));
	color: #ffffff;
	box-shadow: 0 12px 22px rgba(102, 51, 0, 0.18);
}

.button-secondary {
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid #d9ccb5;
	color: var(--link);
}

.button-primary:hover,
.button-secondary:hover,
.home-shortcut-card:hover,
.home-news-item:hover,
.home-feature-card:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.button-primary:hover {
	color: #ffffff;
	background: linear-gradient(135deg, #8c541a, #744115);
	box-shadow: 0 16px 26px rgba(102, 51, 0, 0.24);
}

.button-secondary:hover {
	background: #ffffff;
	color: var(--linkHover);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.home-intro-side {
	display: flex;
	align-items: center;
	justify-content: center;
}

.home-crest-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 6px 0;
	width: 100%;
	height: 100%;
}

.home-crest-image {
	width: min(100%, 220px);
	max-height: 260px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

.promo-banner {
	display: block;
	overflow: hidden;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: #ffffff;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.promo-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-shortcuts {
	margin-top: 24px;
}

.home-shortcuts .card-body {
	padding: 18px;
}

.section-head {
	margin-bottom: 14px;
	padding: 18px 20px;
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 236, 217, 0.96));
	border: 1px solid var(--border);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.section-head p {
	max-width: 68ch;
	color: #3d4d4d;
}

.home-shortcut-grid,
.home-news-grid,
.home-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.home-feature-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-shortcut-card,
.home-news-item,
.home-feature-card {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 18px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
	height: 100%;
}

.home-shortcut-card {
	position: relative;
	padding: 96px 20px 22px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 241, 0.98));
	justify-items: center;
	text-align: center;
}

.home-shortcut-card::before {
	content: attr(data-icon);
	position: absolute;
	top: 18px;
	left: 50%;
	width: 58px;
	height: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: rgba(102, 51, 0, 0.12);
	font-size: 30px;
	line-height: 1;
	transform: translateX(-50%);
	box-shadow: inset 0 0 0 1px rgba(102, 51, 0, 0.08);
}

.home-shortcut-card::after {
	content: "→";
	position: absolute;
	right: 16px;
	bottom: 14px;
	font-size: 18px;
	font-weight: 700;
	color: rgba(40, 77, 77, 0.45);
}

.home-shortcut-card:hover,
.home-news-item:hover,
.home-feature-card:hover {
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
	border-color: #d5c4a4;
}

.home-shortcut-title {
	font-size: 18px;
	font-weight: 800;
	color: #1f3131;
}

.home-shortcut-text {
	font-size: 15px;
	line-height: 1.6;
	color: #4d5c5c;
	max-width: 28ch;
}

.home-layout {
	margin-top: 24px;
	align-items: start;
}

.home-main-stack,
.sidebar-stack {
	display: grid;
	gap: 18px;
}

.sidebar-stack {
	gap: 14px;
}

.home-sidebar-card {
	background: rgba(255, 255, 255, 0.96);
	border-color: #e6ddca;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.home-sidebar-card .card-header {
	padding: 11px 14px;
	font-size: 15px;
	background: linear-gradient(135deg, #6a3810, var(--accent));
}

.home-sidebar-card .card-body {
	padding: 10px 14px 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.98));
}

.home-sidebar-card .compact-list li {
	padding: 10px 0;
	font-size: 14px;
}

.home-sidebar-logos .card-body {
	padding-top: 14px;
	padding-bottom: 14px;
}

.home-news-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(102, 51, 0, 0.12);
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.home-news-date {
	margin: -2px 0 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a6a54;
}

.home-news-item h3,
.home-feature-card h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	color: #1f3131;
}

.home-news-item a,
.home-feature-card a,
.compact-list a,
.home-shortcut-card {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.home-news-item a {
	margin-top: auto;
	font-weight: 700;
}

.home-news-item p,
.home-feature-card p {
	margin: 0;
	color: #4d5c5c;
	line-height: 1.7;
}

.compact-list li {
	padding: 12px 0;
	font-size: 15px;
	line-height: 1.55;
}

.home-logo-stack {
	display: grid;
	gap: 14px;
	align-items: center;
	justify-items: center;
}

.home-logo-stack a {
	display: flex;
	justify-content: center;
	width: 100%;
}

.home-logo-stack img {
	width: auto;
	max-width: min(100%, 210px);
	max-height: 112px;
	padding: 6px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: #ffffff;
	object-fit: contain;
}

.election-shell {
	padding-top: 8px;
}

.election-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
}

.election-hero-image {
	width: min(100%, 220px);
	margin: 0 auto;
	border-radius: 18px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.election-layout {
	margin-top: 24px;
	align-items: start;
}

.election-main-stack {
	display: grid;
	gap: 18px;
}

.election-table-wrap h2 {
	margin-bottom: 14px;
}

.election-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
}

.election-table th,
.election-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.election-table th {
	width: 34%;
	background: rgba(244, 236, 217, 0.9);
	font-weight: 800;
	color: #3f301d;
}

.election-table tr:last-child th,
.election-table tr:last-child td {
	border-bottom: 0;
}

.election-link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.election-link-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,235,0.98));
	font-weight: 800;
	text-align: center;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.election-link-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
	border-color: #d5c4a4;
	text-decoration: none;
}

.election-doc-card {
	display: grid;
	gap: 6px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,235,0.98));
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.election-doc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
	border-color: #d5c4a4;
	text-decoration: none;
}

.election-doc-date {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7a6a54;
}

.election-doc-title {
	font-size: 18px;
	font-weight: 800;
	color: #1f3131;
}

.election-doc-place {
	font-size: 15px;
	font-weight: 700;
	color: var(--accent);
}

.civil-page .page {
	padding-top: 24px;
	padding-bottom: 40px;
}

.civil-shell {
	padding-top: 8px;
}

.civil-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
}

.civil-hero-media {
	display: flex;
	justify-content: center;
	align-items: center;
}

.civil-hero-image {
	width: min(100%, 320px);
	border-radius: 22px;
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.civil-layout {
	margin-top: 24px;
	align-items: start;
}

.civil-main-stack {
	display: grid;
	gap: 18px;
}

.civil-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: #ffffff;
}

.civil-table th,
.civil-table td {
	padding: 14px 16px;
	border: 1px solid var(--border);
	vertical-align: top;
	text-align: left;
	font-size: 14px;
	line-height: 1.6;
}

.civil-table thead th {
	background: rgba(244, 236, 217, 0.95);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #3f301d;
}

.civil-table tbody th {
	min-width: 210px;
	background: rgba(255, 255, 255, 0.96);
	font-weight: 800;
	color: #1f3131;
}

.civil-table tbody td {
	color: #4d5c5c;
}

.civil-table td a + a {
	display: inline-block;
	margin-top: 6px;
}

.civil-org-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.civil-org-card {
	display: grid;
	gap: 10px;
	padding: 18px;
	min-height: 100%;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,235,0.98));
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.civil-org-card:hover,
.civil-org-card:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
	border-color: #d5c4a4;
}

.civil-org-card h3 {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	color: #1f3131;
}

.civil-org-card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #4d5c5c;
}

.civil-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(102, 51, 0, 0.12);
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.civil-org-meta {
	margin-top: auto;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
	color: #6a5942;
}

.civil-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2px;
}

.civil-button {
	min-height: 40px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 800;
}

.civil-logo-stack img {
	max-width: min(100%, 190px);
	max-height: 110px;
}

.hirmondo-shell {
	padding-top: 8px;
}

.hirmondo-page .page {
	padding-top: 24px;
	padding-bottom: 40px;
}

.hirmondo-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
}

.hirmondo-hero-side {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hirmondo-logo-image {
	width: min(100%, 280px);
	padding: 16px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.hirmondo-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.hirmondo-layout {
	margin-top: 24px;
	align-items: start;
}

.hirmondo-main-stack {
	display: grid;
	gap: 18px;
}

.hirmondo-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.hirmondo-meta-card {
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,235,0.98));
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.hirmondo-meta-card h3,
.hirmondo-notes h3 {
	margin: 0 0 10px;
	font-size: 18px;
	color: #1f3131;
}

.hirmondo-meta-card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #4d5c5c;
}

.hirmondo-notes {
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: rgba(244, 236, 217, 0.56);
}

.issue-missing {
	display: inline-block;
	margin: 2px 10px 2px 0;
	color: #8b7a60;
	font-weight: 700;
}

.issue-missing::before {
	content: "|";
	opacity: 0.6;
	margin-right: 10px;
}

.issues-table td > :first-child.issue-missing::before {
	content: none;
	margin-right: 0;
}

.hirmondo-cover-image {
	width: 100%;
	border-radius: 16px;
	border: 1px solid var(--border);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* Pályázatok oldal (palyazatok.html) */
.grants-shell {
	padding-top: 8px;
	display: grid;
	gap: 18px;
}

.grants-page .page {
	padding-top: 24px;
	padding-bottom: 40px;
}

.grants-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
}

.grants-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.grants-hero-side {
	display: flex;
	justify-content: center;
	align-items: center;
}

.grants-hero-logos {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	width: min(100%, 320px);
}

.grants-hero-logo-card {
	background: linear-gradient(180deg, #ffffff 0%, #faf6eb 100%);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 16px;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.grants-hero-logo-card img {
	width: 100%;
	max-height: 120px;
	object-fit: contain;
	margin: 0 auto;
}

.grants-main-stack {
	display: grid;
	gap: 18px;
}

.grants-note {
	margin: 0 0 18px;
	color: #4c504d;
	font-size: 15px;
}

.grants-category-block + .grants-category-block {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
}

.grants-subtitle {
	margin: 0 0 14px;
	font-size: 21px;
	color: #633232;
}

.grants-project-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.grant-project-card {
	border: 1px solid var(--border);
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #fcf8ef 100%);
	padding: 16px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.grant-project-top {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.grant-program,
.grant-year {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.grant-program {
	background: rgba(102, 51, 0, 0.12);
	color: var(--accent);
}

.grant-year {
	background: rgba(40, 77, 77, 0.1);
	color: var(--link);
}

.grant-project-card h3 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
	color: #1b2220;
}

.grant-project-card h3 a {
	color: inherit;
	text-decoration: none;
}

.grant-project-card h3 a:hover {
	color: var(--linkHover);
	text-decoration: underline;
}

.grant-code {
	margin: 0 0 12px;
	color: #5e4335;
	font-size: 14px;
	font-weight: 800;
	word-break: break-word;
}

.grant-code a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.grant-doc-list,
.grants-link-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.grant-doc-list li,
.grants-link-list li {
	margin: 0;
	padding: 0;
}

.grant-doc-list a,
.grants-link-list a {
	font-weight: 600;
}

.grant-inline-note {
	font-size: 13px;
	color: #59605a;
	white-space: nowrap;
}

.grants-tao-table thead th:first-child,
.grants-tao-table tbody th {
	white-space: nowrap;
	width: 120px;
}

.grants-tao-table {
	font-size: 15px;
	table-layout: fixed;
}

.grants-tao-table th,
.grants-tao-table td {
	padding: 10px 12px;
	line-height: 1.3;
}

.grants-tao-table thead th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.grants-tao-table tbody th {
	font-size: 14px;
	font-weight: 800;
	color: #4e3a2d;
}

.grants-tao-table td a {
	margin: 0;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.grants-tao-table td {
	text-align: center;
}

.grants-tao-table td a + a::before {
	content: none;
}

.grants-tao-extra {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px dashed var(--border);
}

.grants-tao-extra a {
	font-size: 12px;
	font-weight: 600;
}

.grants-tao-matrix thead th,
.grants-tao-matrix tbody th,
.grants-tao-matrix tbody td {
	width: 16.66%;
}

.grants-tao-matrix tbody th:nth-child(1),
.grants-tao-matrix tbody th:nth-child(4) {
	background: var(--soft);
}

.grants-tao-empty {
	background: #ffffff;
	border-left-color: var(--border);
	border-right-color: var(--border);
}

.grants-side-block {
	display: grid;
	gap: 14px;
}

.grants-side-image {
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.grants-bursa-image {
	max-width: 160px;
}

.grants-image-link {
	display: inline-flex;
	justify-content: center;
	width: 100%;
	padding: 12px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: #fffdf8;
}

.grants-link-list-spaced {
	gap: 14px;
}

.grants-logo-wall {
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
}

.grants-logo-item {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 118px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #faf6eb 100%);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
	text-decoration: none !important;
}

.grants-logo-item img {
	max-height: 88px;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
}

.grants-logo-wall .grants-logo-item img[src*="bkkve_logo_v"] {
	max-height: 56px;
}

/* Önkormányzat oldal (onkorm.html) */
.municipal-shell {
	padding-top: 8px;
	display: grid;
	gap: 18px;
}

.municipal-page .page {
	padding-top: 24px;
	padding-bottom: 40px;
}

.municipal-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
}

.municipal-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.municipal-hero-side {
	display: flex;
	justify-content: center;
	align-items: center;
}

.municipal-photo-card {
	display: block;
	padding: 12px;
	border-radius: 20px;
	background: linear-gradient(180deg, #ffffff 0%, #faf6eb 100%);
	border: 1px solid var(--border);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
	text-decoration: none !important;
}

.municipal-team-image {
	width: min(100%, 230px);
	border-radius: 14px;
	margin: 0 auto;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.municipal-main-stack {
	display: grid;
	gap: 18px;
}

.municipal-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
	gap: 18px;
	align-items: start;
}

.municipal-contact-copy p {
	margin: 0 0 10px;
}

.municipal-social-link {
	margin-bottom: 10px;
}

.municipal-facebook-badge {
	display: inline-flex;
	padding: 8px 10px;
	border-radius: 12px;
	background: #f8f4e8;
	border: 1px solid var(--border);
}

.municipal-facebook-badge img {
	height: 28px;
	width: auto;
}

.municipal-leaders-grid {
	display: grid;
	gap: 12px;
}

.municipal-leader-card {
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 14px;
	background: linear-gradient(180deg, #ffffff 0%, #fcf8ef 100%);
}

.municipal-leader-card h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: #633232;
}

.municipal-leader-card p {
	margin: 0 0 4px;
}

.municipal-info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.municipal-member-list {
	margin: 0 0 16px;
	padding-left: 18px;
	display: grid;
	gap: 6px;
}

.municipal-member-list-condensed {
	grid-template-columns: 1fr;
	column-gap: 0;
	row-gap: 0;
	margin-bottom: 10px;
	padding-left: 20px;
}

.municipal-member-list-condensed li {
	padding: 2px 0;
	line-height: 1.35;
}

.municipal-link-stack {
	display: grid;
	gap: 10px;
}

.municipal-link-stack-gap {
	margin-top: 16px;
	margin-bottom: 16px;
}

.municipal-inline-link {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fcf8ef;
	border: 1px solid var(--border);
	font-weight: 700;
	text-decoration: none !important;
}

.municipal-inline-link:hover {
	text-decoration: underline !important;
}

.municipal-video-list {
	display: grid;
	gap: 8px;
	margin-top: 16px;
}

.municipal-video-list a {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fffaf0;
	border: 1px solid var(--border);
}

.municipal-staff-table th {
	width: 52%;
	font-weight: 700;
}

.municipal-small {
	font-size: 13px;
	color: #5f615b;
	font-weight: 500;
}

.municipal-gdpr-card {
	display: flex;
	justify-content: center;
	padding: 12px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: #ffffff;
}

.municipal-gdpr-card img {
	width: min(100%, 180px);
	height: auto;
}

.municipal-side-block {
	display: grid;
	gap: 14px;
}

.municipal-ohp-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, #ffffff 0%, #f7f5ec 100%);
	text-decoration: none !important;
	text-align: center;
	font-weight: 800;
}

.municipal-ohp-card img {
	max-width: 173px;
	height: auto;
}

.municipal-summary-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: 24px;
	align-items: start;
}

.municipal-contact-table th {
	width: 42%;
}

.municipal-section-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	align-items: start;
}

.municipal-panel {
	min-width: 0;
}

.municipal-mini-card {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fcfbf7;
}

.municipal-subtitle {
	margin: 18px 0 10px;
	font-size: 18px;
	color: #633232;
}

.municipal-panel .municipal-subtitle:first-of-type,
.municipal-sidebar-section .municipal-subtitle:first-of-type,
.municipal-resource-group .municipal-subtitle:first-of-type {
	margin-top: 0;
}

.municipal-resource-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.municipal-resource-group {
	min-width: 0;
}

.municipal-resource-list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 9px;
}

.municipal-resource-list li {
	margin: 0;
}

.municipal-resource-list a {
	font-weight: 600;
}

.municipal-panel-links {
	display: grid;
	gap: 10px;
	margin-top: 16px;
	margin-bottom: 16px;
}

.municipal-sidebar-section {
	display: grid;
	gap: 10px;
}

.municipal-video-links {
	list-style: none;
	padding-left: 0;
	gap: 8px;
}

.municipal-video-links a {
	display: inline;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: 0;
	font-style: normal;
	font-weight: 600;
}

@media (max-width: 1180px) {
	.municipal-hero-grid,
	.municipal-contact-grid,
	.municipal-summary-grid,
	.municipal-section-grid,
	.municipal-resource-columns {
		grid-template-columns: 1fr;
	}

	.municipal-info-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 780px) {
	.municipal-staff-table th,
	.municipal-staff-table td {
		display: block;
		width: 100%;
	}

	.municipal-staff-table th {
		border-bottom: 0;
		padding-bottom: 6px;
	}

	.municipal-staff-table td {
		padding-top: 0;
	}
}

@media (max-width: 1180px) {
	.grants-hero-grid {
		grid-template-columns: 1fr;
	}

	.grants-hero-logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}
}

@media (max-width: 780px) {
	.grants-project-grid {
		grid-template-columns: 1fr;
	}

	.grants-tao-matrix,
	.grants-tao-matrix thead,
	.grants-tao-matrix tbody,
	.grants-tao-matrix tr,
	.grants-tao-matrix th,
	.grants-tao-matrix td {
		display: block;
		width: 100% !important;
	}

	.grants-tao-matrix thead {
		display: none;
	}

	.grants-tao-matrix tr {
		margin-bottom: 12px;
		border: 1px solid var(--border);
		border-radius: 12px;
		overflow: hidden;
	}

	.grants-tao-matrix tbody th {
		border-bottom: 0;
	}

	.grants-tao-matrix tbody td {
		border-top: 0;
	}

	.grants-tao-empty {
		display: none !important;
	}

	.grants-hero-logos {
		grid-template-columns: 1fr;
	}

	.grants-logo-wall {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}

	.municipal-hero-grid {
		padding: 18px;
	}
}

@media (max-width: 1100px) {
	.home-intro-grid,
	.home-shortcut-grid,
	.home-news-grid,
	.home-feature-grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-feature-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}

	.election-hero-grid {
		grid-template-columns: 1fr;
	}

	.civil-hero-grid {
		grid-template-columns: 1fr;
	}

	.hirmondo-hero-grid {
		grid-template-columns: 1fr;
	}

	.gallery-hero-grid,
	.season-grid {
		grid-template-columns: 1fr;
	}

	.kozerdeku-hero-grid {
		grid-template-columns: 1fr;
	}

	.season-tile {
		grid-template-columns: minmax(110px, 160px) 1fr;
	}
}

@media (max-width: 760px) {
	.home-page .page {
		padding-top: 16px;
	}

	.home-intro-grid,
	.home-shortcut-grid,
	.home-news-grid,
	.home-feature-grid {
		grid-template-columns: 1fr;
	}

	.home-intro-grid {
		padding: 18px;
	}

	.home-shortcut-card {
		padding: 88px 18px 20px;
	}

	.home-intro-copy h2,
	.section-head h2 {
		font-size: 26px;
	}

	.button-primary,
	.button-secondary {
		width: 100%;
	}

	.election-hero-grid {
		padding: 18px;
	}

	.civil-page .page {
		padding-top: 16px;
	}

	.hirmondo-page .page {
		padding-top: 16px;
	}

	.kozerdeku-page .page {
		padding-top: 16px;
	}

	.civil-hero-grid {
		padding: 18px;
	}

	.hirmondo-hero-grid {
		padding: 18px;
	}

	.kozerdeku-hero-grid {
		padding: 18px;
	}

	.civil-org-grid {
		grid-template-columns: 1fr;
	}

	.election-table th,
	.election-table td {
		display: block;
		width: 100%;
	}

	.election-table th {
		border-bottom: 0;
		padding-bottom: 6px;
	}

	.election-table td {
		padding-top: 0;
	}

	.gallery-hero-grid {
		padding: 18px;
	}

	.season-tile {
		grid-template-columns: 1fr;
	}

	.season-title {
		font-size: 24px;
	}
}
