/*
 * Páciens-portál: a TELJES stílus ebben az egy fájlban (2026-11-12). István választása: C3 „Dokumentumtár” + a C2 tervblokkja
 * (docs/elonezetek/portal_C3_dokumentumtar_2026-11-12.html, portal_C2_kezelesi_ut_2026-11-12.html).
 * Mobil-első (a betegek többsége telefonról lép be): alsó dokk (keresés + szűrők) és fülsáv, 44 px-es érintési felület, 16 px-nél nem kisebb betű.
 * Asztalon (900 px felett) sötét „semi-dark” oldalsáv + világos tartalom. SwissDent teal #007D9E (a páciens-oldal nem követi az admin színét).
 * Szigorú CSP: nincs inline stílus és script, nincs külső betűtípus vagy kép. A régi portal_oldal() váz (hibaoldalak) osztályait is formázza.
 */
:root {
  /* márka */
  --teal: #007D9E;            /* fehér szöveg rajta 4,8:1 */
  --teal-700: #006580;        /* link, hover: 6,5:1 fehéren */
  --teal-50: #ebf5f8;         /* „Új” sor halvány háttere */
  --teal-100: #d3eaf1;
  --teal-vonal: #a9cfdb;
  /* semi-dark keret */
  --side: #0d2c37; --side-2: #163f4d; --side-ink: #d6e7ed; --side-mute: #a3c1cb; --side-line: #24505f;
  /* tartalom */
  --bg: #eef3f5; --surface: #ffffff; --line: #d5e0e5; --line-soft: #e6edf0; --hover: #f4f8fa;
  --ink: #13262e; --ink-2: #2b4049; --mute: #4a5f68;
  /* állapotok (mindig szöveggel együtt) */
  --ok-bg: #ddf2e6; --ok-ink: #0e5a33;
  --var-bg: #fdf0d2; --var-ink: #6b4a00;
  --hiba: #a4262c; --hiba-bg: #fdecec;
  /* típusjelölők (csak díszítés, a jelentést a szöveg viszi) */
  --c-nyilatkozat: #007D9E; --c-terv: #2a5ea8; --c-igazolas: #7a5a00; --c-dokumentum: #6a8692; --c-szamla: #6b4fa8; --c-latogatas: #3d7a4f;
  --focus: #0a7fa0; --focus-dark: #8fe1f5;
  /* tér: 4-es lépték */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --r-sm: 8px; --r-md: 12px; --r-pill: 999px;
  --f: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fd: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #9fb6bf transparent; }
body.portal {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--f);
  overflow-x: hidden;
}
::selection { background: var(--teal); color: #ffffff; }
h1, h2, h3 { font-family: var(--fd); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
input { caret-color: var(--teal); }
a { color: var(--teal-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.portal-oldalsav :focus-visible, .portal-fulsav :focus-visible { outline-color: var(--focus-dark); }
main:focus { outline: none; }
.portal-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.portal-ikonkeszlet { position: absolute; width: 0; height: 0; overflow: hidden; }
.portal-ikon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-ikon--nagy { width: 24px; height: 24px; }

/* Ugrás a tartalomra: csak fókuszban látszik */
.portal-ugras {
  position: absolute; left: var(--s4); top: -100px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
  background: var(--ink); color: #ffffff; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.portal-ugras:focus { top: var(--s2); }

/* ---------- Fejléc ---------- */
.portal-fejlec {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3);
  min-height: 60px; padding: 0 var(--s4);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.portal-logo-link { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }
.portal-logo { display: block; width: 112px; height: auto; }
.portal-alcim { color: var(--mute); font-size: 16px; line-height: 24px; }
.portal-fejlec-jobb { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.portal-ki, .portal-fejlec-kilepes { display: none; }
/* régi váz (hibaoldalak): szöveges márkanév a logó helyén */
.portal-marka { margin: 0; font: 700 20px/1.2 var(--fd); color: var(--teal-700); }
.portal-kilepes { margin: 0 0 0 auto; }

/* Nyelvváltó */
.portal-nyelv ul { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.portal-nyelv li + li { border-left: 1px solid var(--line); }
.portal-nyelv a {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--s3);
  font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--mute); text-decoration: none;
}
.portal-nyelv a:hover { background: var(--hover); color: var(--ink); }
.portal-nyelv a[aria-current="true"] { background: var(--teal); color: #ffffff; }
.portal-nyelv a:focus-visible { outline-offset: -3px; border-radius: 0; }
.portal-nyelv a[aria-current="true"]:focus-visible { outline-color: #ffffff; }

/* ---------- Gombok, linkek ---------- */
.portal-gomb {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 100%; min-height: 52px; padding: 0 var(--s5);
  font: inherit; font-size: 18px; font-weight: 650; line-height: 1.2; text-decoration: none;
  color: #ffffff; background: var(--teal); border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; transition: background-color .15s ease;
}
.portal-gomb:hover { background: var(--teal-700); text-decoration: none; }
.portal-gomb--masodlagos { width: auto; min-height: 44px; font-size: 17px; color: var(--teal-700); background: var(--teal-50); border-color: var(--teal-vonal); }
.portal-gomb--masodlagos:hover { color: var(--teal-700); background: var(--teal-100); border-color: var(--teal); }
.portal-gomb--ikonos .portal-ikon { width: 20px; height: 20px; }
.portal-gomb-csendes {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3);
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--teal-700); font-weight: 600; font-size: 16px;
}
.portal-gomb-csendes:hover { background: var(--teal-50); }
.portal-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2);
  color: var(--teal-700); font-weight: 600;
}
.portal-link--gomb { border: 0; background: transparent; cursor: pointer; text-decoration: underline; gap: var(--s2); font-size: 17px; }
.portal-masodlagos { margin: var(--s4) 0 0; text-align: center; }

/* ---------- Belépés: egy kártya ---------- */
.portal-tartalom { flex: 1 0 auto; width: 100%; max-width: 480px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s8); }
.portal-kartya { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6) var(--s5); }
.portal-cim { margin: 0 0 var(--s4); font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.portal-szoveg { margin: 0 0 var(--s4); color: var(--ink-2); }
.portal-szoveg--halk { color: var(--mute); font-size: 16px; margin-top: var(--s4); }
.portal-uzenet { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); border: 1px solid var(--teal-vonal); background: var(--teal-50); color: #064a5c; }
.portal-uzenet--hiba { border-color: #e2a3a6; background: var(--hiba-bg); color: var(--hiba); }
.portal-uzenet--siker { border-color: #9fd2b3; background: var(--ok-bg); color: var(--ok-ink); }
.portal-urlap { display: flex; flex-direction: column; gap: var(--s3); margin: 0; }
.portal-cimke { font-weight: 600; font-size: 17px; }
.portal-mezo {
  width: 100%; min-height: 54px; padding: 0 var(--s4);
  font: inherit; font-size: 18px; color: var(--ink);
  background: var(--surface); border: 1px solid #768d97; border-radius: var(--r-sm);
  scroll-margin-bottom: 140px; /* a gomb ne kerüljön a billentyűzet alá */
}
.portal-mezo:hover { border-color: var(--teal); }
.portal-mezo:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.portal-mezo--kod { font-size: 28px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; padding: 0 var(--s2); }
.portal-urlap .portal-gomb { margin-top: var(--s2); }
.portal-kartya-kilepes { margin: var(--s4) 0 0; text-align: center; }
.portal-lablec { padding: var(--s4); text-align: center; color: var(--mute); font-size: 16px; }

/* Profilválasztó */
.portal-profilok { display: flex; flex-direction: column; gap: var(--s3); }
.portal-profil form { margin: 0; }
.portal-profil-gomb {
  width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  padding: var(--s3) var(--s4); text-align: left; color: var(--ink);
  background: var(--teal-50); border: 1px solid var(--teal-vonal); border-radius: var(--r-sm);
}
.portal-profil-gomb:hover { border-color: var(--teal); background: var(--teal-100); }
.portal-profil-nev { font-weight: 700; font-size: 18px; }
.portal-profil-ev { color: var(--mute); font-size: 16px; }

/* ---------- Belépett váz (telefon az alap) ---------- */
.portal-vaz { flex: 1 0 auto; display: flex; flex-direction: column; }
.portal-oldalsav { display: none; }
.portal-oszlop { flex: 1 0 auto; display: flex; flex-direction: column; min-width: 0; }
.portal-fo { flex: 1 0 auto; display: flex; flex-direction: column; min-width: 0; padding: var(--s6) var(--s4) var(--s8); }

/* Fej: üdvözlés, összegzés, ZIP */
.portal-fej { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s5); }
.portal-fej-cim { font-size: 25px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.portal-osszegzes { margin-top: var(--s1); color: var(--mute); }
.portal-zip { display: flex; flex-direction: column; gap: var(--s2); margin: 0; }
.portal-zip-meta { color: var(--mute); text-align: center; font-size: 16px; }

/* Aktuális kezelési terve (C2) */
.portal-terv {
  margin: 0 calc(-1 * var(--s4)) var(--s6); padding: var(--s5) var(--s4) var(--s6);
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.portal-terv-fej { display: flex; flex-direction: column; gap: var(--s3); }
.portal-terv-cim { font-size: 17px; font-weight: 650; color: var(--teal-700); font-family: var(--f); }
.portal-terv-nev { margin-top: var(--s1); font: 700 22px/1.25 var(--fd); letter-spacing: -.01em; overflow-wrap: anywhere; }
.portal-terv-jelvenyek { display: flex; flex-wrap: wrap; gap: var(--s2); }
.portal-terv-datum { margin-top: var(--s3); color: var(--mute); }
.portal-terv-megj { margin-top: var(--s3); color: var(--ink-2); max-width: 62ch; }
.portal-terv-gombok { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.portal-terv-gombok .portal-gomb { width: 100%; min-height: 52px; padding: 0 var(--s3); font-size: 17px; }
.portal-allapot, .portal-dok-uj, .portal-jelveny-uj {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s3);
  border-radius: var(--r-pill); font-size: 16px; font-weight: 650; line-height: 1.2; white-space: nowrap;
}
.portal-allapot--kikuldve { background: var(--var-bg); color: var(--var-ink); }
.portal-allapot--elfogadva { background: var(--ok-bg); color: var(--ok-ink); }
.portal-dok-uj, .portal-jelveny-uj { background: var(--teal); color: #ffffff; letter-spacing: .02em; }

/* Keresés + chipek */
.portal-eszkoztar { display: flex; flex-direction: column; gap: var(--s2); }
.portal-eszkoztar--fo { display: none; }
.portal-kereso { display: flex; gap: var(--s2); margin: 0; }
.portal-kereso-mezo { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.portal-kereso-ikon { position: absolute; left: 14px; color: var(--mute); pointer-events: none; }
.portal-kereso-input {
  width: 100%; min-height: 48px; padding: 0 var(--s3) 0 44px;
  border: 1px solid #768d97; border-radius: var(--r-sm); background: var(--surface);
  font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.portal-kereso-mezo:has(.portal-kereso-torles) .portal-kereso-input { padding-right: 48px; }
.portal-kereso-input::placeholder { color: #5c7079; opacity: 1; }
.portal-kereso-input:hover { border-color: var(--teal); }
.portal-kereso-input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.portal-kereso-input::-webkit-search-cancel-button { display: none; }
.portal-kereso-torles { position: absolute; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--mute); border-radius: 6px; }
.portal-kereso-torles:hover { color: var(--ink); }
.portal-kereso-gomb {
  flex: none; min-height: 48px; padding: 0 var(--s4); border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--teal); color: #ffffff; font-weight: 650; font-size: 17px;
}
.portal-kereso-gomb:hover { background: var(--teal-700); }
.portal-chipek ul { display: flex; flex-wrap: nowrap; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding: 6px; margin: -4px -6px; }
.portal-chipek ul::-webkit-scrollbar { display: none; }
.portal-chip {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 16px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.portal-chip:hover { border-color: var(--teal); background: var(--hover); }
.portal-chip-db { color: var(--mute); font-variant-numeric: tabular-nums; }
.portal-chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; font-weight: 650; }
.portal-chip[aria-current="true"] .portal-chip-db { color: #c6d6dc; }

.portal-eredmeny { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s3); color: var(--mute); font-size: 16px; margin-bottom: var(--s1); }
.portal-eredmeny-torles { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Dokumentumlista: egyetlen szerkezet (évenként szakasz + lista); telefonon sorok, asztalon táblázatszerű rács */
.portal-lista-fej { display: none; }
.portal-ev + .portal-ev { margin-top: var(--s5); }
.portal-ev-cim { display: flex; align-items: baseline; gap: var(--s2); padding: var(--s3) var(--s1) var(--s2); font: 700 19px/1.2 var(--fd); }
.portal-ev-db { font: 400 16px var(--f); color: var(--mute); }
.portal-sorok { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.portal-sor {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tipus akcio" "fo akcio" "adat akcio";
  column-gap: var(--s3); row-gap: 2px; align-items: center; padding: var(--s4) var(--s3) var(--s4) var(--s4); min-height: 76px;
}
.portal-sor + .portal-sor { border-top: 1px solid var(--line-soft); }
.portal-sor--uj { background: var(--teal-50); }
.portal-sor-tipus { grid-area: tipus; }
.portal-sor-fo { grid-area: fo; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); min-width: 0; }
.portal-sor-adat { grid-area: adat; display: flex; flex-wrap: wrap; gap: 0 var(--s2); color: var(--mute); font-size: 16px; }
.portal-sor-cim { font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.portal-sor-cim:hover { color: var(--teal-700); text-decoration: underline; }
.portal-sor--uj .portal-sor-cim { font-weight: 700; }
.portal-sor-cim::after { content: ""; position: absolute; inset: 0; } /* az egész sor a megnyitás célja; a letöltés gomb fölötte marad */
.portal-sor-letolt {
  grid-area: akcio; position: relative; z-index: 1;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--teal-vonal); background: var(--surface); color: var(--teal-700); text-decoration: none;
}
.portal-sor-letolt:hover { background: var(--teal-50); border-color: var(--teal); }
.portal-sor-letolt .portal-ikon { width: 22px; height: 22px; }
.portal-sor-letolt-szoveg { display: none; }
/* Fájl nélküli sor (látogatás): a cím sima szöveg (nem link, nincs egész soros kattintási felület), a letöltés helyén üres hely a rács miatt. */
.portal-sor-cim--szoveg::after { content: none; }
.portal-sor-cim--szoveg:hover { color: var(--ink); text-decoration: none; }
.portal-sor-letolt--nincs { visibility: hidden; border: 0; background: none; }
.portal-tipus { display: inline-flex; align-items: center; gap: var(--s2); font-size: 16px; color: var(--mute); white-space: nowrap; }
.portal-tipus::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, #888888); flex: none; }
.portal-tipus--nyilatkozat { --c: var(--c-nyilatkozat); }
.portal-tipus--terv { --c: var(--c-terv); }
.portal-tipus--igazolas { --c: var(--c-igazolas); }
.portal-tipus--dokumentum { --c: var(--c-dokumentum); }
.portal-tipus--szamla { --c: var(--c-szamla); }
.portal-tipus--latogatas { --c: var(--c-latogatas); }

/* Nincs találat / üres */
.portal-nincs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6) var(--s4); }
.portal-nincs-cim { font-size: 20px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.portal-nincs p { color: var(--mute); margin-top: var(--s2); max-width: 60ch; }
.portal-nincs .portal-nincs-gombok { margin-top: var(--s5); }
.portal-nincs .portal-gomb { min-height: 48px; }
.portal-ures-allapot { max-width: 640px; padding-top: var(--s2); }
.portal-ures-cim { display: flex; align-items: flex-start; gap: var(--s3); font-size: 21px; line-height: 1.3; font-weight: 700; }
.portal-ures-cim .portal-ikon { margin-top: 3px; color: var(--teal); }
.portal-ures { margin-top: var(--s3); color: var(--ink-2); font-weight: 600; }
.portal-ures-szoveg { margin-top: var(--s2); color: var(--ink-2); max-width: 60ch; }
.portal-ures-megj { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--mute); }

/* „Kérdése van?” */
.portal-kerdes--fo { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); scroll-margin-top: var(--s4); }
.portal-kerdes-cim { font-size: 19px; font-weight: 650; }
.portal-kerdes-szoveg { color: var(--mute); margin: var(--s1) 0 var(--s2); }
.portal-kerdes-link { display: flex; align-items: center; gap: var(--s3); min-height: 48px; font-size: 17px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.portal-kerdes-link .portal-ikon { color: var(--teal); }
.portal-kerdes-link:hover span { text-decoration: underline; }

@media (max-width: 899px) {
  html:has(.portal-dokk) { scroll-padding-bottom: 76px; }
  html:has(.portal-dokk .portal-eszkoztar) { scroll-padding-bottom: 210px; }
}
/* Alsó dokk: keresés + szűrők a hüvelykujj alatt, alatta a fülsáv */
.portal-dokk { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line); }
.portal-eszkoztar--dokk { padding: var(--s3) var(--s4); }
.portal-fulsav { background: var(--side); padding: 0 var(--s3) env(safe-area-inset-bottom, 0px); }
.portal-fulsav ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.portal-ful-kilepes { margin: 0; height: 100%; }
.portal-ful {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; padding: var(--s1) var(--s3); border: 0; border-radius: 0; background: transparent;
  color: var(--side-ink); font-size: 16px; font-weight: 500; text-decoration: none;
}
.portal-ful:hover { background: var(--side-2); }
.portal-ful .portal-ikon { width: 22px; height: 22px; }
.portal-ful[aria-current="page"] { color: #ffffff; font-weight: 650; }
.portal-ful[aria-current="page"] .portal-ikon { color: var(--focus-dark); }
.portal-ful[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--focus-dark); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Keskeny telefonon a „Páciens-portál” felirat helyett a nyelvváltó fér el a logó mellett (a logó linkje a nevet felolvassa) */
@media (max-width: 439px) {
  .portal-alcim { display: none; }
}

/* ---------- Asztal (900 px felett): sötét oldalsáv + világos tartalom ---------- */
@media (min-width: 900px) {
  html:has(.portal--belepett) { scroll-padding-top: 80px; }
  .portal-fejlec { min-height: 64px; padding: 0 var(--s6); gap: var(--s4); position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; }
  .portal-fejlec-jobb { min-width: 0; }
  .portal-logo { width: 131px; }
  .portal-alcim { padding-left: var(--s4); border-left: 1px solid var(--line); }
  .portal-ki { display: inline-block; max-width: 24ch; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 16px; font-weight: 600; color: var(--ink); padding-left: var(--s3); border-left: 1px solid var(--line); }
  .portal-fejlec-kilepes { display: block; margin: 0; }
  .portal-tartalom { padding-top: var(--s12); }
  .portal-kartya { padding: var(--s8) var(--s8); }

  .portal-vaz { flex-direction: row; }
  .portal-oszlop { flex: 1 1 0%; }
  .portal-oldalsav {
    display: flex; flex-direction: column; gap: var(--s1); flex: none; width: 248px;
    background: var(--side); color: var(--side-ink); padding: var(--s5) var(--s3);
    /* a fejléc és az oldalsáv áll, csak a tartalom görög */
    position: sticky; top: 64px; align-self: flex-start; height: calc(100vh - 64px); overflow-y: auto;
  }
  .portal-nav-lista { display: flex; flex-direction: column; gap: 2px; }
  .portal-nav-szakasz { font-size: 16px; color: var(--side-mute); padding: var(--s5) var(--s3) var(--s2); font-weight: 600; }
  .portal-nav {
    display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-sm);
    color: var(--side-ink); font-size: 16px; font-weight: 500; text-decoration: none;
  }
  .portal-nav:hover { background: var(--side-2); }
  .portal-nav[aria-current="page"] { background: var(--teal); color: #ffffff; font-weight: 650; }
  .portal-nav[aria-current="true"] { background: var(--side-2); color: #ffffff; font-weight: 650; }
  .portal-nav-db { margin-left: auto; color: var(--side-mute); font-variant-numeric: tabular-nums; }
  .portal-nav[aria-current] .portal-nav-db { color: #ffffff; }
  .portal-oldalsav-ter { flex: 1; min-height: var(--s6); }
  .portal-kerdes--oldalsav { border-top: 1px solid var(--side-line); padding: var(--s4) var(--s3) var(--s3); color: var(--side-mute); }
  .portal-kerdes--oldalsav .portal-kerdes-cim { font-size: 17px; color: #ffffff; }
  .portal-kerdes--oldalsav .portal-kerdes-szoveg { color: var(--side-mute); font-size: 16px; }
  .portal-kerdes--oldalsav .portal-kerdes-link { min-height: 44px; font-size: 16px; font-weight: 500; color: var(--side-ink); }
  .portal-kerdes--oldalsav .portal-kerdes-link .portal-ikon { color: var(--side-mute); }
  .portal-kerdes--fo, .portal-dokk { display: none; }

  .portal-fo { padding: var(--s8) var(--s10) var(--s12); max-width: none; }
  .portal-fej { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s6); margin-bottom: var(--s6); }
  .portal-fej-cim { font-size: 30px; }
  .portal-zip { flex-direction: row-reverse; align-items: center; gap: var(--s3); flex: none; }
  .portal-zip .portal-gomb { width: auto; min-height: 48px; font-size: 17px; }
  .portal-zip-meta { text-align: right; line-height: 1.3; }

  .portal-terv { margin: 0 0 var(--s6); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-md); }
  .portal-terv-fej { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .portal-terv-nev { font-size: 24px; }
  .portal-terv-gombok { display: flex; flex-wrap: wrap; }
  .portal-terv-gombok .portal-gomb { width: auto; min-height: 48px; padding: 0 var(--s5); }

  .portal-eszkoztar--fo { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--s3) var(--s4); margin-bottom: var(--s3); }
  .portal-eszkoztar--fo .portal-kereso { flex: 0 1 460px; min-width: 300px; }
  .portal-chipek ul { flex-wrap: wrap; overflow: visible; }
  .portal-chip { min-height: 44px; }

}

/* A táblázatos lista 1200 px-től: 900-1199 px között a telefonos sor-elrendezés marad (különben a Letöltés gomb levágódik) */
@media (min-width: 1200px) {
  .portal-lista-fej, .portal-sor { grid-template-columns: 210px minmax(0, 1fr) 120px 90px 160px; grid-template-areas: none; }
  .portal-lista-fej {
    display: grid; column-gap: var(--s4); padding: var(--s3) var(--s4); margin-bottom: var(--s2);
    color: var(--mute); font-size: 16px; font-weight: 600;
  }
  .portal-ev-cim { padding: var(--s4) var(--s1) var(--s2); }
  .portal-sor { column-gap: var(--s4); padding: var(--s3) var(--s4); min-height: 64px; }
  .portal-sor:hover { background: var(--hover); }
  .portal-sor--uj:hover { background: var(--teal-100); }
  .portal-sor-tipus, .portal-sor-fo, .portal-sor-letolt { grid-area: auto; }
  .portal-sor-adat { display: contents; }
  .portal-sor-elval { display: none; }
  .portal-sor-datum, .portal-sor-meret { color: var(--mute); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .portal-sor-letolt {
    width: auto; height: auto; min-height: 44px; justify-self: end; display: inline-flex; align-items: center; gap: var(--s2);
    padding: 0 var(--s3); background: var(--teal-50); font-weight: 600; font-size: 16px;
  }
  .portal-sor-letolt .portal-ikon { width: 18px; height: 18px; }
  .portal-sor-letolt-szoveg { display: inline; }
  .portal-tipus { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
