/* Kömlő Községi Önkormányzat – stíluslap
   Arculat: „alföldi falusi újság” – papírszínű alap, talpas betűs címek, középre zárt címlapfej.
   Színek a címerből: mezőzöld, búzaarany, égkék. Betűk: a gép saját betűkészletei (nincs letöltött webfont). */
:root {
  --papir: #f7f2e7;
  --papir-2: #efe7d5;
  --lap: #fffcf5;
  --tinta: #24271f;
  --halvany: #6b6656;
  --vonal: #dcd1b9;
  --zold: #1d4a30;
  --zold-2: #2c6a43;
  --zold-halvany: #e4eedf;
  --buza: #c38d22;
  --buza-vilagos: #e9c46a;
  --buza-halvany: #f5e7c4;
  --eg: #245f9e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(36, 39, 31, .06), 0 10px 30px -18px rgba(36, 39, 31, .35);
  /* a szerkesztőfelület stílusai ezeket a neveket használják */
  --navy: var(--zold);
  --blue: var(--zold-2);
  --blue-soft: var(--zold-halvany);
  --green: var(--zold-2);
  --green-soft: var(--zold-halvany);
  --gold: var(--buza);
  --ink: var(--tinta);
  --muted: var(--halvany);
  --line: var(--vonal);
  --bg: var(--papir);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--tinta); background: var(--papir); }
img { max-width: 100%; display: block; }
a { color: var(--zold-2); text-underline-offset: .18em; }
a:hover { color: var(--zold); }
:focus-visible { outline: 3px solid var(--buza); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--zold); margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ikon { display: inline-block; }
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--buza); color: var(--tinta); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Gombok ---------- */
.gomb, .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: 600 16px var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.gomb-zold, .btn-primary { background: var(--zold); color: #fff; }
.gomb-zold:hover, .btn-primary:hover { background: var(--zold-2); color: #fff; }
.gomb-keret, .btn-outline { border-color: var(--zold); color: var(--zold); background: transparent; }
.gomb-keret:hover, .btn-outline:hover { background: var(--zold); color: #fff; }
.nyil-link { font-weight: 600; text-decoration: none; }
.nyil-link::after { content: " →"; transition: margin .15s; }
.nyil-link:hover::after { margin-left: 4px; }
.vissza-link::after { content: none; }
.vissza-link::before { content: "← "; }

/* ---------- Fejléc: dátumsor, címlapfej, menü ---------- */
.fejlec { background: var(--papir); }
.fejlec-sor { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; font-size: 14px; color: var(--halvany); border-bottom: 1px solid var(--vonal); }
.fejlec-sor p { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* a felső sáv egy sorban maradjon: keskenyebb képernyőn előbb a dátum, aztán az e-mail rejtőzik
   (az e-mail a főoldali névjegyben, az oldalsávban és a láblécben is ott van) */
@media (max-width: 1180px) { .fejlec-sor .datum { display: none; } }
@media (max-width: 1000px) { .fejlec-sor .mail { display: none; } }
/* táblagépen és mobilon a felső sáv két középre zárt sor: fent a „ma” jelzés, alatta a telefon és a gombok */
@media (max-width: 900px) { .fejlec-sor { flex-wrap: wrap; justify-content: center; padding-top: 6px; padding-bottom: 6px; gap: 4px 14px; } }
.fejlec-sor .datum { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--tinta); }
.fejlec-sor a { color: var(--tinta); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.fejlec-sor a:hover { color: var(--zold-2); text-decoration: underline; }
.fejlec-sor svg { width: 15px; height: 15px; fill: var(--buza); }
.fejlec-sor .ikongomb { padding: 3px; }
.fejlec-sor .ikongomb svg { width: 21px; height: 21px; fill: var(--zold); color: var(--zold); }
.allapot { display: inline-flex; align-items: center; gap: 8px; }
.allapot .jelzo { width: 9px; height: 9px; border-radius: 50%; background: #b5ad98; flex: none; }
.allapot.nyitva .jelzo { background: #2f9a52; box-shadow: 0 0 0 3px rgba(47, 154, 82, .2); }
/* „Akadálymentes nézet” gomb (a nézetet a kontraszt.js kapcsolja; a stílusa a stíluslap végén) */
.kontraszt-gomb { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1.5px solid var(--zold); border-radius: 999px; background: transparent; color: var(--zold); font: 600 13.5px var(--font); white-space: nowrap; cursor: pointer; }
.kontraszt-gomb:hover, .kontraszt-gomb[aria-pressed="true"] { background: var(--zold); color: #fff; }
.fejlec-sor .kontraszt-gomb svg { width: 16px; height: 16px; }

.cimlapfej { display: flex; justify-content: center; align-items: center; padding: 22px 24px 18px; position: relative; }
.cimlap-link { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--zold); }
.cimlap-link img { width: 64px; height: auto; }
.cimlap-link .szoveg { display: flex; flex-direction: column; }
.cimlap-link .telepules { font-family: var(--serif); font-size: 50px; line-height: 1; font-weight: 700; letter-spacing: .02em; }
.cimlap-link .alcim { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--halvany); margin-top: 6px; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--papir); border-top: 3px double var(--zold); border-bottom: 1px solid var(--vonal); }
.nav > ul { list-style: none; margin: 0 auto; display: flex; justify-content: center; gap: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid var(--vonal); }
.nav a { display: block; padding: 13px 18px; font: 600 15.5px var(--font); color: var(--tinta); text-decoration: none; }
.nav > ul > li > a { position: relative; }
.nav > ul > li > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: var(--buza); transform: scaleX(0); transition: transform .15s; }
.nav > ul > li:hover > a::after, .nav > ul > li:focus-within > a::after, .nav > ul > li > a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--zold); }
.nav .sub {
  position: absolute; top: 100%; left: 50%; min-width: 280px; list-style: none; margin: 0; padding: 10px;
  background: var(--lap); border: 1px solid var(--vonal); border-top: 3px solid var(--buza); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: .15s;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav .sub a { font-weight: 500; font-size: 15px; padding: 7px 12px; border-radius: 4px; }
.nav .sub a:hover { background: var(--papir-2); color: var(--zold); }
.nav .sub.cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 540px; column-gap: 8px; }
.nav .sub .label { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--buza); padding: 8px 12px 2px; grid-column: auto; }
.nav .sub.cols .label:first-child { grid-column: 1; grid-row: 1; }
.nav-toggle { display: none; }

/* ---------- Nyitány ---------- */
.nyitany { padding: 56px 0 64px; }
.nyitany-racs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.felcim { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--buza); font-weight: 700; margin: 0 0 14px; }
.nyitany h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -.01em; }
.nyitany h1 em { color: var(--buza); }
.bevezeto { font-size: 19.5px; color: #3f4237; max-width: 34em; margin: 0 0 28px; }
.gombok { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
/* számokban Kömlő: keretes „adatlap” a nyitórész jobb oldalán */
.tenyek { margin: 0; background: var(--lap); border: 1px solid var(--vonal); border-top: 4px double var(--zold); border-radius: 0 0 var(--radius) var(--radius); padding: 8px 30px; box-shadow: var(--shadow); }
.tenyek div { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-top: 1px solid var(--vonal); }
.tenyek div:first-child { border-top: 0; }
.tenyek dt { flex: 0 0 120px; font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--zold); line-height: 1.1; }
.tenyek dd { margin: 0; font-size: 15.5px; color: var(--halvany); line-height: 1.4; }

/* ---------- Gyorssáv ---------- */
.gyorssav { background: var(--zold); color: #fff; }
.gyorssav ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); }
.gyorssav li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.gyorssav a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 10px 26px; color: #fff; text-decoration: none; height: 100%; transition: background .15s; }
.gyorssav a:hover { background: rgba(255, 255, 255, .07); }
.gyorssav .kor { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--buza-vilagos); display: grid; place-items: center; margin-bottom: 8px; transition: background .15s; }
.gyorssav a:hover .kor { background: var(--buza-vilagos); }
.gyorssav svg { width: 24px; height: 24px; stroke: var(--buza-vilagos); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gyorssav a:hover svg { stroke: var(--zold); }
.gyorssav strong { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.gyorssav small { font-size: 13px; color: #c9dccd; line-height: 1.35; }

/* ---------- Rovatok ---------- */
.rovat { padding: 64px 0; }
.rovatfej { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.rovatfej h2 { font-size: 36px; margin: 0; white-space: nowrap; }
.rovatfej::after { content: ""; order: 2; flex: 1; border-top: 1px solid var(--vonal); align-self: center; }
.rovatfej a { order: 3; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rovatfej a::after { content: " →"; }
.rovatcimke { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--buza); }
.hirdoboz .rovatcimke time { display: block; margin-top: 2px; }
.rovatcimke time { color: var(--halvany); letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 13.5px; }

/* Hírek: a főoldalon egy sorban négy */
.hirsor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 44px; border-top: 3px double var(--zold); }
/* egyforma szélességű oszlopok (így a képek is egyformák); az elválasztó vonal az oszlopközben */
.hirdoboz { position: relative; padding: 24px 0 8px; }
.hirdoboz + .hirdoboz::before { content: ""; position: absolute; left: -22px; top: 24px; bottom: 8px; border-left: 1px solid var(--vonal); }
.hirdoboz .kep-link { display: block; margin-bottom: 16px; }
.hirdoboz h3 { font-size: 21px; margin: 0 0 8px; }
.hirdoboz h3 a { color: var(--tinta); text-decoration: none; }
.hirdoboz h3 a:hover { color: var(--zold-2); text-decoration: underline; }
.hirdoboz p { margin: 0 0 10px; font-size: 15.5px; color: #4a4d42; }
.hirkep { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative; }
.hirkep img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s; }
.kep-link:hover .hirkep img { transform: scale(1.04); }
.hirkep.ures { display: grid; place-items: center; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px 14px); }
.hirkep.ures svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.t-blue { background-color: #d9e6f2; color: var(--eg); }
.t-green { background-color: #dcead7; color: var(--zold-2); }
.t-gold { background-color: var(--buza-halvany); color: #9a6c12; }
.attach { display: inline-flex; align-items: center; gap: 6px; color: var(--halvany); font-size: 14px; }
.attach svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.tovabb-sor { text-align: center; margin: 34px 0 0; }

/* Ügyfélfogadás és névjegy */
.hivatal-sav { background: var(--papir-2); padding: 60px 0; border-top: 1px solid var(--vonal); border-bottom: 1px solid var(--vonal); }
.hivatal-racs { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hivatal-sav h2 { font-size: 30px; }
.het-cim { margin: 18px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--buza); }
.het { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.het li { background: var(--lap); border: 1px solid var(--vonal); border-radius: var(--radius); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 112px; }
.het .nap { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--zold); }
.het .nap em { font-family: var(--font); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--buza); color: #fff; padding: 2px 7px; border-radius: 99px; vertical-align: 3px; }
.het .ido { font-size: 14.5px; line-height: 1.45; }
.het .van { border-top: 4px solid var(--zold-2); }
.het .nincs { color: var(--halvany); border-top: 4px solid #cfc6b1; background: transparent; }
.het .nincs .nap { color: var(--halvany); }
.het .ma { box-shadow: 0 0 0 2px var(--buza); }
.fogadoora { margin: 0; font-size: 15.5px; }
.nevjegy { font-style: normal; background: var(--lap); border: 1px solid var(--vonal); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.nevjegy img { width: 48px; height: auto; margin-bottom: 4px; }
.nevjegy > strong { font-family: var(--serif); font-size: 22px; color: var(--zold); }
.nevjegy span { display: flex; gap: 10px; align-items: flex-start; }
.nevjegy span svg { width: 17px; height: 17px; fill: var(--buza); flex: none; margin-top: 4px; }
.nevjegy .gomb { align-self: flex-start; margin-top: 8px; }

/* Köszöntő */
/* a hírek fölött: keretes „lap” a polgármester fotójával, háttérben nagy idézőjellel */
.koszonto-sav { padding: 56px 0 0; }
.koszonto {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 44px; align-items: center;
  background: var(--lap); border: 1px solid var(--vonal); border-left: 5px solid var(--buza); border-radius: var(--radius);
  padding: 36px 170px 32px 40px; box-shadow: var(--shadow);
}
.koszonto::after { content: "\201D"; position: absolute; right: 30px; top: -38px; font: 700 240px/1 var(--serif); color: var(--buza-halvany); pointer-events: none; }
.koszonto > * { position: relative; z-index: 1; }
.monogram { grid-row: span 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: var(--zold); color: var(--buza-vilagos); font: 700 46px var(--serif); border: 6px solid var(--lap); box-shadow: 0 0 0 1px var(--vonal); }
.monogram.portre { object-fit: cover; object-position: center 25%; background: var(--papir-2); }
.koszonto figure { margin: 0; }
.koszonto-cimke { margin: 0; font: 700 12.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--buza); margin-bottom: 12px; }
.koszonto blockquote { margin: 0 0 14px; }
.koszonto blockquote p { margin: 0; font: italic 400 clamp(21px, 2.4vw, 28px)/1.42 var(--serif); color: var(--tinta); max-width: 34em; }
.koszonto figcaption { color: var(--halvany); }
.koszonto figcaption strong { color: var(--zold); }
.koszonto .nyil-link { grid-column: 2; justify-self: start; margin-top: 6px; }

/* Intézmények mutatója */
.intezmeny-index { display: grid; grid-template-columns: 1fr 2fr; gap: 0 48px; }
.intezmeny-index .csoport h3, .intezmeny-index .csoport h2 { font-size: 15px; font-family: var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--buza); margin: 0 0 6px; }
.intezmeny-index ul { list-style: none; margin: 0; padding: 0; }
.intezmeny-index .csoport:nth-child(2) ul { columns: 2; column-gap: 48px; }
.intezmeny-index li { break-inside: avoid; border-bottom: 1px solid var(--vonal); }
.intezmeny-index a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; color: var(--tinta); text-decoration: none; font-weight: 600; }
.intezmeny-index a span { flex: 1; }
.intezmeny-index a::after { content: "→"; color: var(--buza); opacity: 0; transform: translateX(-6px); transition: .15s; }
.intezmeny-index a:hover { color: var(--zold); }
.intezmeny-index a:hover::after { opacity: 1; transform: none; }
.intezmeny-index svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--zold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.intezmeny-index.tag .csoport { margin-bottom: 20px; }

/* Pályázatok */
.rovat-palyazat { padding-top: 8px; }
.palyazat-lista { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--zold); }
.palyazat-lista a { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 6px; border-bottom: 1px solid var(--vonal); text-decoration: none; color: var(--tinta); transition: background .15s; }
.palyazat-lista a:hover { background: var(--papir-2); }
.palyazat-lista .kod { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--buza); }
.palyazat-lista .cim { display: flex; flex-direction: column; }
.palyazat-lista strong { font-family: var(--serif); font-size: 21px; color: var(--zold); }
.palyazat-lista small { color: var(--halvany); font-size: 13.5px; }
.palyazat-lista .nyil { font-size: 22px; color: var(--buza); }
/* támogatói táblák és bannerek egyforma dobozokban; a nagyon széles csík teljes szélességben */
.logosor { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.logosor a { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 190px; padding: 14px; background: #fff; border: 1px solid var(--vonal); border-radius: var(--radius); transition: border-color .15s; }
.logosor a:hover { border-color: var(--zold-2); }
.logosor img { max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.logosor .szeles { grid-column: 1 / -1; }
.logosor .szeles a { min-height: 0; padding: 8px; }

/* ---------- Lábléc ---------- */
.lablec { background: var(--zold); color: #cfe0d2; font-size: 15px; margin-top: 40px; }
.barazda { height: 14px; background: repeating-linear-gradient(90deg, var(--buza) 0 22px, var(--buza-vilagos) 22px 44px); }
.lablec-racs { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 40px; }
.lablec a { color: #fff; text-decoration: none; }
.lablec a:hover { text-decoration: underline; }
.lablec h2 { font-size: 19px; color: var(--buza-vilagos); margin: 0 0 14px; }
.lablec ul { list-style: none; margin: 0; padding: 0; }
.lablec li { margin-bottom: 7px; }
.lablec-cim { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lablec-cim img { width: 56px; height: auto; }
.lablec-cim strong { display: block; font: 700 34px/1 var(--serif); color: #fff; }
.lablec-cim small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #a9c4ae; margin-top: 4px; }
.lablec .social { display: inline-flex; padding: 4px; margin-left: -4px; }
.lablec .social svg { width: 28px; height: 28px; fill: #fff; }
.lablec-alja { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }

/* ---------- Belső oldalak ---------- */
.lapfej { padding: 40px 0 30px; }
.lapfej h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 10px 0 0; }
.lapfej h1::after { content: ""; display: block; width: 72px; height: 4px; background: var(--buza); margin-top: 18px; }
.crumbs { font-size: 14px; color: var(--halvany); }
.crumbs a { color: var(--halvany); text-decoration: none; }
.crumbs a:hover { color: var(--zold); text-decoration: underline; }
.crumbs [aria-current] { color: var(--tinta); }
.lap-racs { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; padding-bottom: 40px; }
.lap-keskeny { padding-bottom: 40px; }
.lap-keskeny > .lap { max-width: 860px; }
.lap { background: var(--lap); border: 1px solid var(--vonal); border-radius: var(--radius); padding: 40px 46px; min-width: 0; box-shadow: var(--shadow); }
.lead-text { max-width: 70ch; color: #4a4d42; margin: 0 0 30px; font-size: 19px; }

.prose { overflow-wrap: anywhere; font-size: 17.5px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 27px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose img { height: auto; border-radius: var(--radius); margin: .5em 0; }
.prose figure { margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--vonal); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { font-family: var(--serif); color: var(--zold); border-bottom: 2px solid var(--zold); }
.prose blockquote { margin: 0 0 1em; padding: 4px 20px; border-left: 3px solid var(--buza); font-family: var(--serif); font-style: italic; }
.prose iframe { max-width: 100%; border: 0; }
.prose .portre-kep { float: right; margin: 0 0 16px 24px; max-width: 280px; }
.prose .portre-kep img { margin: 0; }
@media (max-width: 640px) { .prose .portre-kep { float: none; margin: 0 0 18px; max-width: 100%; } }
.helyorzo { border: 2px dashed var(--vonal); border-radius: var(--radius); padding: 22px 24px; background: var(--papir); color: var(--halvany); }
.helyorzo strong { color: var(--zold); }
.lead-img { margin: 0 0 26px; }
.lead-img img { width: 100%; border-radius: var(--radius); }
.cikk-meta { margin-bottom: 20px; }
.vissza { margin: 30px 0 0; }

.callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--zold-halvany); border-left: 4px solid var(--zold-2); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 28px; }
.callout h2 { font-size: 21px; margin: 0 0 4px; }
.callout p { margin: 0; color: #3f4237; max-width: 60ch; }

.side-nav { position: sticky; top: 74px; padding: 4px 0 0; }
.side-nav h2 { font: 700 12.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--buza); margin: 0; }
.side-nav .rovatnev { font: 700 24px/1.2 var(--serif); color: var(--zold); margin: 4px 0 14px; padding-bottom: 12px; border-bottom: 3px double var(--zold); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav ul ul { margin: 0 0 6px 14px; }
.side-nav a { display: block; padding: 8px 0 8px 14px; border-left: 3px solid transparent; text-decoration: none; color: var(--tinta); font-size: 15.5px; line-height: 1.35; }
.side-nav a:hover { color: var(--zold); border-left-color: var(--vonal); }
.side-nav a[aria-current] { border-left-color: var(--buza); color: var(--zold); font-weight: 700; }

.attachments { margin-top: 30px; border-top: 1px solid var(--vonal); padding-top: 22px; }
.attachments h2 { font-size: 22px; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attachments a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--vonal); border-radius: var(--radius); text-decoration: none; color: var(--tinta); background: var(--papir); transition: border-color .15s; }
.attachments a:hover { border-color: var(--zold-2); }
.attachments svg { width: 28px; height: 28px; flex: none; stroke: var(--zold-2); fill: none; stroke-width: 1.6; }
.attachments span { display: flex; flex-direction: column; min-width: 0; }
.attachments strong { overflow-wrap: anywhere; font-weight: 600; }
.attachments small { color: var(--halvany); }
.prose .attachments ul { margin: 0; }
.prose .attachments li { margin: 0; }

/* Hírlista */
.hirlista { border-top: 3px double var(--zold); }
.hirlista-elem { display: grid; grid-template-columns: 74px minmax(0, 1fr) 190px; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--vonal); align-items: start; }
.naptar { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--vonal); padding-right: 18px; line-height: 1.1; }
.naptar .nap { font: 700 38px var(--serif); color: var(--zold); }
.naptar .ho { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--buza); }
.naptar .ev { font-size: 12.5px; color: var(--halvany); }
.hirlista-elem h2 { font-size: 24px; margin: 0 0 8px; }
.hirlista-elem h2 a { color: var(--tinta); text-decoration: none; }
.hirlista-elem h2 a:hover { color: var(--zold-2); text-decoration: underline; }
.hirlista-elem .szoveg > p:not(.rovatcimke) { margin: 0 0 8px; color: #4a4d42; }
.hirlista-elem .hirkep svg { width: 40px; height: 40px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { min-width: 42px; text-align: center; padding: 8px 12px; border: 1px solid var(--vonal); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--lap); }
.pager a[aria-current] { background: var(--zold); border-color: var(--zold); color: #fff; }

.oldalsav { display: flex; flex-direction: column; gap: 22px; }
.nevjegy.kicsi { padding: 22px; font-size: 15.5px; box-shadow: none; }
.nevjegy.kicsi > strong { font-size: 20px; }
.nevjegy .allapot { font-size: 14.5px; color: var(--halvany); align-items: center; }
.nevjegy .allapot .jelzo { margin-top: 0; }
.gyakori h2 { font: 700 12.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--buza); margin: 0 0 6px; }
.gyakori ul { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--zold); }
.gyakori li { border-bottom: 1px solid var(--vonal); }
.gyakori a { display: block; padding: 10px 2px; text-decoration: none; color: var(--tinta); font-weight: 600; }
.gyakori a:hover { color: var(--zold); }

/* ---------- Pályázati infóblokk: görgetéskor is mindig látható, jobb alsó sarok ---------- */
.infoblokk { position: fixed; right: 0; bottom: 0; z-index: 60; display: block; width: 300px; background: #fff; border-top-left-radius: 8px; overflow: hidden; box-shadow: 0 -2px 14px rgba(36, 39, 31, .2); }
.infoblokk img { width: 100%; height: auto; }
.infoblokk:focus-visible { outline-offset: -3px; }
/* a lap alja (lábléc utolsó sora) ne kerüljön a logó alá – a Széchenyi 2020 blokk 300×215-ös */
body.van-infoblokk { padding-bottom: 220px; }

/* ---------- Reszponzív ---------- */
/* a szélső menüpontok lenyílója a képernyőn belül marad */
.nav > ul > li:first-child > .sub { left: 0; transform: translate(0, 6px); }
.nav > ul > li:first-child:hover > .sub, .nav > ul > li:first-child:focus-within > .sub { transform: none; }
.nav > ul > li:nth-last-child(-n+2) > .sub { left: auto; right: 0; transform: translate(0, 6px); }
.nav > ul > li:nth-last-child(-n+2):hover > .sub, .nav > ul > li:nth-last-child(-n+2):focus-within > .sub { transform: none; }
@media (max-width: 1100px) {
  .hirsor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hirdoboz:nth-child(odd)::before { display: none; }
  .hirdoboz:nth-child(n+3) { border-top: 1px solid var(--vonal); }
  .gyorssav ul { grid-template-columns: repeat(3, 1fr); }
  .gyorssav li:nth-child(4) { border-left: 0; }
  .gyorssav li:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .het { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* ennél keskenyebben a főmenü „Menü” gomb mögé kerül */
@media (max-width: 980px) {
  .cimlapfej { justify-content: space-between; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--zold); border-radius: 999px; background: transparent; font: 600 15px var(--font); color: var(--zold); cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; }
  .nav { position: static; display: none; border-top: 3px double var(--zold); }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; padding: 6px 24px 20px; }
  .nav > ul > li + li::before { display: none; }
  .nav > ul > li { border-bottom: 1px solid var(--vonal); }
  .nav > ul > li > a { padding: 12px 0; font-family: var(--serif); font-size: 19px; }
  .nav > ul > li > a::after { display: none; }
  .nav .sub, .nav .sub.cols { position: static; opacity: 1; visibility: visible; transform: none !important; box-shadow: none; border: 0; min-width: 0; display: block; padding: 0 0 10px 12px; background: transparent; }
  .nav .sub a { padding: 6px 0; }
  .nav .sub .label { padding: 8px 0 2px; }
  .nyitany-racs { grid-template-columns: 1fr; gap: 34px; }
  .tenyek { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; padding: 6px 22px; }
  .tenyek div:nth-child(2) { border-top: 0; }
  .tenyek div { flex-direction: column; gap: 2px; }
  .tenyek dt { flex: none; }
  .hivatal-racs { grid-template-columns: 1fr; gap: 28px; }
  .koszonto { padding-right: 90px; }
  .intezmeny-index { grid-template-columns: 1fr; }
  .intezmeny-index .csoport + .csoport { margin-top: 26px; }
  .lap-racs { grid-template-columns: 1fr; }
  .side-nav { position: static; order: 2; }
  .lablec-racs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .het { grid-template-columns: 1fr; gap: 6px; }
  .het li { min-height: 0; flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 14px; border-top-width: 1px; border-left: 4px solid #cfc6b1; }
  .het .van { border-left-color: var(--zold-2); border-top-width: 1px; }
  .het .ido { text-align: right; }
  .hirlista-elem { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; }
  .hirlista-elem .kep-link { display: none; }
  .naptar { padding-right: 12px; }
  .naptar .nap { font-size: 30px; }
  .koszonto { grid-template-columns: 1fr; padding: 26px 22px 24px; gap: 14px; }
  .koszonto::after { font-size: 170px; right: 14px; top: -26px; }
  .monogram { grid-row: auto; width: 96px; height: 96px; font-size: 34px; }
  .koszonto .nyil-link { grid-column: 1; }
  .palyazat-lista a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .palyazat-lista .kod { grid-column: 1; }
  .logosor { grid-template-columns: 1fr; }
  .palyazat-lista .cim { grid-column: 1; grid-row: 2; }
  .palyazat-lista strong { font-size: 19px; }
  .palyazat-lista .nyil { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .fejlec-sor { flex-wrap: wrap; justify-content: center; padding-top: 6px; padding-bottom: 6px; gap: 4px 14px; }
  .fejlec-sor .datum, .fejlec-sor .mail { display: none; }
  .kontraszt-gomb { padding: 4px; border-radius: 50%; }
  .kontraszt-gomb span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .cimlapfej { padding: 14px 16px; }
  .cimlap-link { gap: 12px; }
  .cimlap-link img { width: 44px; }
  .cimlap-link .telepules { font-size: 34px; }
  .cimlap-link .alcim { font-size: 10.5px; letter-spacing: .12em; }
  .cimlap-link .megye { display: none; }
  .nyitany { padding: 30px 0 40px; }
  .bevezeto { font-size: 17.5px; }
  .tenyek { padding: 4px 16px; column-gap: 16px; }
  .tenyek dt { font-size: 25px; }
  .tenyek dd { font-size: 13.5px; }
  .gyorssav ul { grid-template-columns: 1fr 1fr; padding: 0; }
  .gyorssav li { border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, .14); }
  .gyorssav li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .14) !important; }
  .gyorssav li:nth-child(-n+2) { border-top: 0; }
  .gyorssav a { padding: 20px 8px; }
  .gyorssav small { display: none; }
  .rovat { padding: 46px 0; }
  .rovatfej h2 { font-size: 28px; white-space: normal; }
  .hirsor { grid-template-columns: 1fr; }
  .hirdoboz, .hirdoboz:nth-child(n) { padding: 22px 0 10px; border-top: 1px solid var(--vonal); }
  .hirdoboz + .hirdoboz::before { display: none; }
  .hirdoboz:first-child { border-top: 0; }
  .hirdoboz .kep-link { margin-bottom: 12px; }
  .hirdoboz .hirkep { aspect-ratio: 16 / 7; }
  .intezmeny-index .csoport:nth-child(2) ul { columns: 1; }
  .lap { padding: 24px 18px; }
  .lablec-racs { grid-template-columns: 1fr; }
  .infoblokk { width: 200px; }
  body.van-infoblokk { padding-bottom: 150px; }
  .nav.open { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- A szerkesztőfelület közös elemei ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h1 { margin: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; font-family: var(--serif); line-height: 1.2; }
.brand small { display: block; font-size: 13px; }

/* ---------- Szerkesztőfelület ---------- */
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; flex-wrap: wrap; }
.admin-bar .brand { color: #fff; }
.admin-bar .brand img { width: 36px; }
.admin-bar .brand strong { font-size: 17px; }
.admin-bar .brand small { color: #9fb7cc; }
.admin-bar .user { font-size: 14px; color: #cfe0ef; }
.admin-bar .user button { color: #fff; margin-left: 12px; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 32px 20px 60px; }
.admin-nav { list-style: none; margin: 0; padding: 0; }
.admin-nav a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; }
.admin-nav a:hover { background: #fff; }
.admin-nav a[aria-current] { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; min-width: 0; }
.panel h1 { font-size: 26px; }
.field { margin-bottom: 20px; }
.field > label, .field > .label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=password], .field input[type=date], .field input[type=file], .field select, .field textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.toolbar { display: flex; gap: 4px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 6px; background: var(--bg); flex-wrap: wrap; }
.toolbar button { font: 600 14px var(--font); border: 0; background: none; padding: 6px 10px; border-radius: 6px; color: var(--navy); cursor: pointer; }
.toolbar button:hover { background: #fff; }
.field .toolbar + textarea { border-radius: 0 0 10px 10px; min-height: 260px; resize: vertical; }
.files { list-style: none; margin: 10px 0 0; padding: 0; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; font-size: 15px; flex-wrap: wrap; }
.files label { font-weight: 500; color: #b42318; display: inline-flex; gap: 6px; align-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.actions { display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; flex-wrap: wrap; }
button.btn { border: 0; cursor: pointer; font-family: var(--font); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
button.btn-danger, .btn-danger { background: #fff; color: #b42318; border: 1.5px solid #e7b4ae; }
.btn-danger:hover { background: #fdecea; color: #b42318; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.kep-elonezet { max-height: 120px; border-radius: 8px; }
.files .nev-mezo { flex: 1 1 260px; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; min-width: 0; }
.files .nev-mezo:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.fajlvalaszto { margin-top: 10px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert-ok { background: var(--green-soft); color: #1d5a36; }
.alert-err { background: #fdecea; color: #8a1c12; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table td.act { white-space: nowrap; text-align: right; }
.admin-table form { display: inline; }
.status { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.status.on { background: var(--green-soft); color: var(--green); }
.status.off { background: #eef0f3; color: var(--muted); }
.login { max-width: 420px; margin: 60px auto; }
.help { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.help code { background: #fff; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
  .row2 { grid-template-columns: 1fr; }
  .admin-table .hide-sm { display: none; }
}

/* ---------- Akadálymentes nézet (nagy kontraszt, sárga-fekete, nagyobb betű) – önkormányzati oldalakon kötelező ----------
   A stilus.css VÉGÉRE másold (a !important szabályok így mindent felülírnak). Kipróbálva: hevesvezekeny.hu.
   Az 1. rész változtatás nélkül használható; a 2. részt a település saját díszítő elemeihez igazítsd. */

/* 1. Általános rész */
html.kontraszt body { font-size: 19.5px; background: #000 !important; }
html.kontraszt body *, html.kontraszt body *::before, html.kontraszt body *::after {
  background-color: #000 !important; background-image: none !important; color: #ff0 !important;
  border-color: #ff0 !important; box-shadow: none !important; text-shadow: none !important;
}
html.kontraszt a, html.kontraszt a * { color: #0ff !important; text-decoration: underline !important; }
html.kontraszt .btn, html.kontraszt .kontraszt-gomb, html.kontraszt .nav-toggle { border: 2px solid #ff0 !important; }
html.kontraszt :focus-visible { outline: 3px solid #fff !important; }
html.kontraszt img { filter: none; }   /* a fotók, plakátok, címer eredeti színben maradnak */

/* 2. Kömlő-specifikus rész: a pusztán díszítő elemek eltűnnek, a kártyák és szakaszok határát sárga keret jelzi,
   az ikonok sárgák (linkben türkizek), hogy fekete alapon is látsszanak */
html.kontraszt .barazda, html.kontraszt .koszonto::after, html.kontraszt .lapfej h1::after { display: none !important; }
html.kontraszt .lap, html.kontraszt .nevjegy, html.kontraszt .koszonto, html.kontraszt .tenyek, html.kontraszt .het li,
html.kontraszt .logosor a, html.kontraszt .attachments a, html.kontraszt .callout, html.kontraszt .hirkep,
html.kontraszt .helyorzo, html.kontraszt .nav .sub, html.kontraszt .pager a { border: 2px solid #ff0 !important; }
html.kontraszt .lapfej, html.kontraszt .nyitany, html.kontraszt .gyorssav, html.kontraszt .hivatal-sav { border-bottom: 2px solid #ff0 !important; }
html.kontraszt .lablec { border-top: 2px solid #ff0 !important; }
html.kontraszt .allapot .jelzo { border: 2px solid #ff0 !important; }
html.kontraszt .allapot.nyitva .jelzo { background-color: #ff0 !important; }
html.kontraszt .fejlec-sor svg, html.kontraszt .nevjegy span svg, html.kontraszt .lablec .social svg { fill: currentColor !important; }
html.kontraszt .gyorssav svg, html.kontraszt .intezmeny-index svg, html.kontraszt .hirkep svg, html.kontraszt .attach svg,
html.kontraszt .attachments svg, html.kontraszt .nav-toggle svg { stroke: currentColor !important; }
html.kontraszt .kontraszt-gomb[aria-pressed="true"], html.kontraszt .kontraszt-gomb[aria-pressed="true"] * { background-color: #ff0 !important; color: #000 !important; }
