﻿/* ============================================================================
   CityPortal — kiegészítő publikus stílusok a design-rendszer tokenjeire építve.
   Ide kerül minden, ami NEM volt a design/js prototípusban (előnézet-szalag,
   süti-sáv, ELŐNÉZET jelölés, nyilvántartás-táblázat toolbar), de a meglévő
   token- és komponens-osztályokra (bia-*, section, panel…) épül.
   NE tartalmazzon helyi hexkódot — csak var(--token) hivatkozásokat.
   ========================================================================== */

/* ───────── Előnézet-szalag ───────── */
.cp-preview-bar {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--status-warning);
  color: #fff;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(14.5px * var(--font-scale));
  padding: 10px var(--page-margin);
}
.cp-preview-bar a { color: #fff; text-decoration: underline; }

/* ───────── Szerkesztői sáv (bejelentkezett szerkesztőnek a publikus oldal tetején) ───────── */
.cp-editor-bar {
  position: sticky;
  top: 0;
  z-index: 160;
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-size: calc(13.5px * var(--font-scale));
  padding: 8px var(--page-margin);
}
.cp-editor-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cp-editor-bar__info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}
.cp-editor-bar__kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(12px * var(--font-scale));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cp-editor-bar__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
}
.cp-editor-bar__meta { opacity: 0.8; white-space: nowrap; }
.cp-editor-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cp-editor-bar__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
}
.cp-editor-bar__status--published::before { background: var(--status-success); }
.cp-editor-bar__status--draft::before { background: var(--status-warning); }
.cp-editor-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.cp-editor-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-on-dark);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(13px * var(--font-scale));
  white-space: nowrap;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.cp-editor-bar__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.cp-editor-bar__btn--primary { background: var(--brand-gradient); border-color: transparent; }
.cp-editor-bar__btn--primary:hover { background: var(--brand-gradient-hover); border-color: transparent; }
.cp-editor-bar__btn svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .cp-editor-bar__title { max-width: 100%; }
  .cp-editor-bar__actions { margin-left: 0; width: 100%; }
}
/* A ragadós fejléc, az előnézet-sáv és az oldalsáv a szerkesztői sáv alatt ragad (a magasságát a portal.js méri: --cp-topbar-h) */
.site-header { top: var(--cp-topbar-h, 0px); }
.cp-preview-bar { top: var(--cp-topbar-h, 0px); }
.aside { top: calc(120px + var(--cp-topbar-h, 0px)); }

/* ───────── Süti-sáv ───────── */
.cp-cookiebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) 0;
}
.cp-cookiebar[hidden] { display: none; }
.cp-cookiebar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.cp-cookiebar__text { font-size: calc(14.5px * var(--font-scale)); color: rgba(255, 255, 255, 0.88); max-width: 640px; margin: 0; }
.cp-cookiebar__text a { color: #fff; text-decoration: underline; }
.cp-cookiebar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Lábléc „Süti-beállítások”: gomb, de a jogi linkekkel azonos megjelenésű */
.site-footer__cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, 0.8); cursor: pointer; }
.site-footer__cookie-settings:hover { text-decoration: underline; }

/* ───────── Nyilvántartás-táblázat (RegisterTable blokk) ───────── */
.cp-register__filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.cp-register__filters .bia-field { flex: 1; min-width: 220px; margin: 0; }
.cp-register__result { min-height: 80px; }
.cp-register__empty { color: var(--ink-500); font-size: var(--text-small-size); padding: var(--space-5) 0; }
.cp-register__loading { color: var(--ink-500); font-size: var(--text-small-size); padding: var(--space-5) 0; }

/* ───────── Dokumentum-lista csíkozása (a _DocRow partial nem kap „alt” paramétert) ───────── */
.panel--list .bia-doc:nth-child(even) { background: var(--surface-mist); }

/* ───────── Régi tartalom táblázatai (migrált HTML törzsben) ───────── */
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--text-small-size); }
.prose table th, .prose table td { padding: 10px 14px; border-bottom: 1px solid var(--border-default); text-align: left; }
.prose table th { background: var(--surface-mist); font-weight: 600; }

/* ───────── Beágyazott oldal (Embed) ───────── */
.cp-embed { width: 100%; border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-white); }
.cp-embed iframe { display: block; width: 100%; border: 0; }
.cp-embed__open { margin-top: var(--space-4); display: flex; justify-content: flex-end; }

/* ───────── Fülszalag-logók (footer-logos menü) ───────── */
.cp-footer-logos { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.cp-footer-logos img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

/* ───────── Lábléc: alpontos menüpont lenyitható csoportként (pl. Választás 2026) ───────── */
.cp-footer-sub summary { cursor: pointer; color: rgba(255, 255, 255, 0.88); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.cp-footer-sub summary::-webkit-details-marker { display: none; }
.cp-footer-sub summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--accent-amber-500); border-bottom: 2px solid var(--accent-amber-500); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.cp-footer-sub[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.cp-footer-sub summary:hover { color: #fff; text-decoration: underline; }
.cp-footer-sub summary:focus-visible { outline: 2px solid var(--accent-amber-500); outline-offset: 2px; }
.cp-footer-sub > ul { margin: var(--space-2) 0 0; padding-left: var(--space-3); border-left: 1px solid rgba(255, 255, 255, 0.25); }

/* ───────── Kiemelt sáv (Notice) ───────── */
.cp-notice { background: var(--accent-amber-50); border-top: 1px solid #f0d9ac; }  /* a fejlécen belül, alatta a fejléc saját alsó vonala */
.cp-notice__row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px var(--page-margin); font-size: calc(14.5px * var(--font-scale)); font-weight: 600; color: var(--ink-900); text-align: center; }
.cp-notice a { color: var(--brand-700); text-decoration: underline; }

/* ==========================================================================
   FEJLÉC — a régi oldal teljes főmenüje (8 főpont, 3 oszlopos panelek)
   ========================================================================== */
.site-header__bar > nav { min-width: 0; }
.megapanel--cols-1 { min-width: 300px; }
.megapanel--cols-1 .megapanel__cols { grid-template-columns: 1fr; }
.megapanel--cols-3 { min-width: 840px; }
.megapanel--cols-3 .megapanel__cols { grid-template-columns: repeat(3, 1fr); }
.megapanel { max-height: calc(100vh - 150px); overflow-y: auto; }
@media (max-width: 1440px) {
  .mainnav__link { padding: 0 7px; font-size: calc(13.5px * var(--font-scale)); gap: 2px; }
  .brand__sub { display: none; }
}
/* 89em (1424px) alatt a főmenü a logóval és a gombokkal (és a 3,5rem-es oldalmargóval) már nem fér ki — a mobilmenü veszi át */
@media (max-width: 89em) {
  .mainnav, .header-actions .desktop-only { display: none; }
  .hamburger { display: inline-flex; }
}
/* A széles (3 oszlopos) panel a menüsáv bal széléhez igazodik — a főponthoz igazítva keskenyebb ablakban kilógna a képernyőről */
.mainnav { position: relative; }
.mainnav__item:has(> .megapanel--cols-3) { position: static; }
.megapanel--cols-3, .megapanel--cols-3.megapanel--right { left: 0; right: auto; transform: translateY(8px); }
.mainnav__item:hover .megapanel--cols-3, .mainnav__item:focus-within .megapanel--cols-3, .megapanel--cols-3:hover { transform: translateY(0); }

/* A tartalom a képernyő 80%-át használja (legalább 94rem — ennyi kell a teljes főmenünek a 3,5rem-es margókkal); a token szinten, hogy a menüsáv, az oldalfej, a tartalom és a lábléc egyforma széles legyen.
   A 10% jobb margó épp a lebegő hirdetmény-sáv (10vw) helye. A „narrow” (760px) blokkok is a teljes tartalomszélességet kapják. */
:root { --container-max: max(94rem, 80vw); }
.container.narrow, .container.narrow > .prose { max-width: var(--container-max); }
/* A részletező oldalak (hír, esemény, személy…) sima .container-ben .prose hasábokat használnak — ezek is a teljes
   tartalomszélességet kapják, ne a 760px-es olvasóhasábot (a hír oldalán két oldalt ~30% üres margó maradt). */
.container > .prose { max-width: var(--container-max); }
/* Keskenyebb asztali ablakban a tartalom a képernyő széléig ér — a bal szélen lebegő akadálymentesítés-gomb (46px) ne takarja */
@media (min-width: 48em) { .container { padding-inline: max(var(--page-margin), 3.5rem); } }
/* Üres oldalsáv (nincs bekapcsolt doboza) ne foglaljon hasábot — különben jobbra ~370px üres sáv marad.
   :empty nem jó, mert a Razor whitespace-t hagy benne. */
.with-aside:has(> .aside):not(:has(> .aside *)) { grid-template-columns: 1fr; }
.with-aside > .aside:not(:has(*)) { display: none; }

/* ───────── Tartalomoldal oldalsávval (prototípus: statikus.html) ─────────
   A blokkok a cikk-hasábban folyamatos szövegként, saját szekció-keret és container nélkül; jobbra 240px ragadós oldalsáv. */
.with-aside--toc { grid-template-columns: 1fr 240px; gap: var(--space-8); }
.prose--blocks { max-width: none; }
.prose--blocks > div > .section, .aside__blocks > .section { padding: 0 0 var(--space-5); background: none; }
.prose--blocks .container, .aside__blocks .container { padding: 0; max-width: none; width: auto; }
.prose--blocks .section__head { margin-bottom: var(--space-3); }
.prose--blocks .section__head .text-h2 { font-size: calc(26px * var(--font-scale)); margin: 0; }
.prose--blocks .prose { max-width: none; }
.prose--blocks > img.ph { margin-bottom: var(--space-6); border-radius: var(--radius-md); }
/* Oldalsáv nélküli tartalomoldal vezérképe: a széles containerben 16:9-ben túl magas lenne → sávosra vágva;
   a kis (< 1000 px) kép saját méretében marad */
.page-hero-image { padding-top: var(--space-7); }
.page-hero-image img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.page-hero-image img.page-hero-image__banner { width: 100%; aspect-ratio: 16 / 9; max-height: 480px; object-fit: cover; background: var(--surface-mist); }
.prose--blocks .gallery img { border-radius: var(--radius-md); }
.prose--blocks figure { margin: var(--space-5) 0; }
.prose--blocks figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
/* Kiemelt számok a cikk-hasábban: „kijelző"-csempék (a szekció-háttér itt nem látszik, ezért a csempe kapja) */
.prose--blocks .stats { gap: var(--space-4); }
.prose--blocks .stat { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4); text-align: center; }
.prose--blocks .stat__num { font-size: calc(36px * var(--font-scale)); }
.stat__num { font-variant-numeric: tabular-nums; }
@media (max-width: 991px) { .with-aside--toc { grid-template-columns: 1fr; } .with-aside--toc .aside { position: static; } }

/* ───────── Idővonal blokk (gyermekoldalak időrendben, évekre bontva) ───────── */
.bia-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.bia-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.bia-timeline__year { position: relative; margin: var(--space-6) 0 var(--space-4); }
.bia-timeline__year:first-child { margin-top: 0; }
.bia-timeline__year span { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h4-size); color: var(--brand-600);
  background: var(--surface-page); padding: 2px 8px 2px 0; }
.bia-timeline__year::before { content: ""; position: absolute; left: -28px; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-600); box-shadow: 0 0 0 4px var(--surface-page); }
.bia-timeline__item { position: relative; margin: 0 0 var(--space-4); }
.bia-timeline__item::before { content: ""; position: absolute; left: -23px; top: 12px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-page); border: 2px solid var(--brand-600); }
.bia-timeline__date { display: block; font-size: var(--text-caption-size); letter-spacing: var(--text-eyebrow-ls); text-transform: uppercase;
  font-weight: 600; color: var(--ink-500); margin-bottom: 6px; }
.bia-timeline__body { padding: var(--space-4) var(--space-5); }
.bia-timeline__body h3 { margin: 0 0 4px; }
.bia-timeline__body h3 a { color: var(--ink-900); text-decoration: none; }
.bia-timeline__body h3 a:hover { color: var(--brand-600); }
.bia-timeline__body p { margin: 0; color: var(--ink-700); }


/* ───────── Intézmény-ikon a kategória szerint (Font Awesome) ───────── */
.bia-icontile__icon i { font-size: 22px; line-height: 1; }
.inst-icon i { font-size: 22px; line-height: 1; }
.inst-icon--lg i { font-size: 30px; }

/* ───────── Intézménykártya: egységes magasság — minden sáv fix sorszámú (vágva), üresen is foglal helyet ───────── */
.bia-instcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; height: 100%; }
.bia-instcard__head { display: flex; align-items: stretch; gap: 14px; font-size: var(--text-h4-size); line-height: var(--text-h4-lh); }
/* Az ikon négyzete a 3 soros cím teljes magasságát kitölti */
.bia-instcard__icon { height: calc(3em * var(--text-h4-lh)); aspect-ratio: 1; border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.bia-instcard__icon img { width: 100%; height: 100%; object-fit: cover; }
.bia-instcard__icon .inst-icon { width: 40%; height: 40%; display: inline-flex; align-items: center; justify-content: center; }
.bia-instcard__icon .inst-icon i { font-size: 32px; }
.bia-instcard__icon .inst-icon svg { width: 100%; height: 100%; }
.bia-instcard__title { flex: 1; min-width: 0; align-self: center; font-family: var(--font-heading); font-weight: 600; color: var(--ink-900);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bia-instcard__ext { width: 15px; height: 15px; display: inline-flex; flex-shrink: 0; align-self: flex-start; margin-top: 6px; color: var(--ink-500); }
.bia-instcard__desc { font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--ink-700);
  height: calc(5em * var(--text-small-lh));
  display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.bia-instcard__contact { margin-top: auto; display: flex; flex-direction: column; font-size: var(--text-small-size);
  line-height: var(--text-small-lh); color: var(--ink-500); }
.bia-instcard__contact > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: calc(1em * var(--text-small-lh)); }
.bia-instcard__contact > .bia-instcard__phone { font-weight: 700; color: var(--brand-600); }

/* ───────── Megosztás: „kimásolva" visszajelzés ───────── */
.iconbtn.is-copied { color: var(--status-success); border-color: var(--status-success); background: var(--status-success-bg); }

/* ───────── Hirdetmények: lebegő kép-bannerek a jobb szélen (két fenntartott spot: fejléc alatt / képernyő alján) ───────── */
/* A pályázati infoblokkok (kötelező arculati elem) 110 px magasak, a szélesség a kép arányából adódik — a megrendelő kérése (Visszajelzések 2026-10, 8. pont) */
.cp-ads__slot { position: fixed; right: 0; z-index: 400; /* mindig legfelül: a süti-sáv (250), menü, lightbox (300) fölött is */ display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cp-ads__slot--top { top: 100px; }      /* a 88px-es fejléc alatt, a képernyő felső 20%-ában */
.cp-ads__slot--bottom { bottom: calc(16px + var(--cookiebar-h, 0px)); } /* a képernyő alsó 20%-ában; nyitott süti-sávnál fölötte (a portal.js méri), hogy ne takarja a gombjait */
.cp-ads__slot[hidden] { display: none; }
.cp-ads__item { display: block; line-height: 0; }
.cp-ads__item img { display: block; height: 110px; width: auto; max-width: 70vw; object-fit: contain; object-position: right center;
  background: var(--surface-white); box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
/* Egy sávban több infoblokk: egyforma dobozok (a képarányuk eltér: 720×200 / 720×216), a kép középen, torzítás nélkül */
.cp-ads__slot:has(.cp-ads__item + .cp-ads__item) .cp-ads__item img { width: 400px; object-position: center; }
.cp-ads__item:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.cp-ads__close { position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface-white); color: var(--info-blue-600); display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-md); padding: 0; transition: transform var(--motion-base) var(--ease); }
.cp-ads__close svg { width: 14px; height: 14px; }
.cp-ads__close:hover { transform: scale(1.1); }
.cp-ads__close:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
@media (max-width: 767px) { .cp-ads__slot--top { top: 84px; } }
/* Bekapcsolt kiemelt sávnál (a sticky fejléc alján) a felső spot a sáv alá kerül */
body:has(.site-header .cp-notice) .cp-ads__slot--top { top: 146px; }
@media (max-width: 767px) { body:has(.site-header .cp-notice) .cp-ads__slot--top { top: 140px; } }
@media print { .cp-ads { display: none; } }

/* ───────── Régi egyedi dizájnú oldal (/telepulesterv, Html blokk tp-* osztályokkal): a bordó a portál színvilágára, a szélesség a többi oldaléra ───────── */
.container .tp-container { /* a blokk saját .tp-container szabálya később töltődik be — erősebb szelektor kell */
  --tp-burgundy: var(--brand-600);
  --tp-burgundy-hover: var(--brand-700);
  --tp-light-bg: var(--brand-50);
  --tp-card-bg: var(--surface-white);
  --tp-border-color: var(--brand-200);
  --tp-text-dark: var(--ink-900);
  --tp-text-muted: var(--ink-500);
  max-width: none;
  font-family: var(--font-body);
  color: var(--ink-700);
}
.container .tp-paragraph { color: var(--ink-700); }
.tp-container .tp-greeting,
.tp-container .tp-section-heading,
.tp-container .tp-survey-cta h3 { font-family: var(--font-heading); }
.tp-container .tp-nav-btn:hover,
.tp-container .tp-doc-item:hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-600) 20%, transparent); }
.tp-container .tp-survey-cta { background: var(--brand-gradient); box-shadow: 0 10px 25px color-mix(in srgb, var(--brand-700) 25%, transparent); }
.tp-container .tp-survey-cta p { color: var(--brand-50); }
.tp-container .tp-btn-survey:hover { background: var(--brand-50); }
.tp-container .tp-forum-note { background: var(--accent-amber-50); border-color: var(--accent-amber-500); color: var(--status-warning); }
.tp-container .tp-section-heading { scroll-margin-top: 100px; } /* a ragadós fejléc ne takarja a horgonyt */

/* ---- Ügyintézés gyorskereső (Services.cshtml + _ServiceSearch.cshtml): témakör → ügyleírás találatok, kiemeléssel ---- */
.ugykereso-wrap { margin-bottom: var(--space-7); }
.ugykereso-hint { margin: 8px 0 0; color: var(--ink-500); }
.ugykereso { margin-top: var(--space-4); border: 1px solid var(--border-default); border-radius: var(--radius-lg, 12px); background: var(--surface-base, #fff); overflow: hidden; }
.ugykereso[aria-busy="true"] { opacity: .6; }
.ugykereso mark { background: var(--accent-amber-50); color: var(--ink-900); padding: 0 2px; border-radius: 3px; font-weight: 600; }
.ugykereso__summary, .ugykereso__empty { padding: var(--space-4) var(--space-5); background: var(--brand-50); color: var(--ink-700); font-size: var(--text-small-size, 14px); }
.ugykereso__group { border-top: 1px solid var(--border-default); }
.ugykereso__topic { display: flex; align-items: center; gap: 14px; padding: var(--space-4) var(--space-5); text-decoration: none; color: var(--ink-900); background: var(--surface-mist, var(--brand-50)); }
.ugykereso__topic:hover .ugykereso__topic-name { color: var(--brand-600); }
.ugykereso__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); font-size: 18px; }
.ugykereso__icon svg { width: 22px; height: 22px; }
.ugykereso__topic-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ugykereso__topic-name { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-h4-size); }
.ugykereso__topic-desc { font-size: var(--text-small-size, 14px); color: var(--ink-600); }
.ugykereso__topic-meta { flex: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ugykereso__hits { display: flex; flex-direction: column; }
.ugykereso__hit { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 54px); text-decoration: none; color: var(--ink-900); border-top: 1px solid var(--border-default); position: relative; }
.ugykereso__hit::before { content: ""; position: absolute; left: calc(var(--space-5) + 19px); top: 0; bottom: 0; border-left: 2px solid var(--border-default); }
.ugykereso__hit:hover { background: var(--brand-50); }
.ugykereso__hit:hover .ugykereso__hit-title { color: var(--brand-600); text-decoration: underline; }
.ugykereso__hit-title { font-family: var(--font-heading); font-weight: 600; font-size: calc(17px * var(--font-scale, 1)); }
.ugykereso__hit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-small-size, 14px); color: var(--ink-500); }
.ugykereso__crumb::before { content: "›"; margin-right: 6px; }
.ugykereso__hit-excerpt { font-size: var(--text-small-size, 14px); color: var(--ink-700); line-height: 1.5; }
.ugykereso__only-topic { margin: 0; padding: var(--space-3) var(--space-5) var(--space-4) calc(var(--space-5) + 54px); color: var(--ink-500); }
@media (max-width: 640px) {
  .ugykereso__topic { flex-wrap: wrap; }
  .ugykereso__topic-meta { justify-content: flex-start; width: 100%; padding-left: 54px; }
  .ugykereso__hit, .ugykereso__only-topic { padding-left: var(--space-5); }
  .ugykereso__hit::before { display: none; }
}

/* Ügyleírás oldala: a törzs (táblázatos ügyleírások is) a konténer teljes szélességét használja, nem az olvasási szélességet */
.prose--full { max-width: none; }

/* Hírek oldalsáv, Archívum: a korábbi évek hónapjai évenként lenyithatók (natív details); az évsor az .aside__list linksorával azonos kinézetű */
.aside__year > summary { list-style: none; display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border-default); font-size: calc(14.5px * var(--font-scale)); font-weight: 600; color: var(--ink-700); cursor: pointer; }
.aside__year > summary::-webkit-details-marker { display: none; }
.aside__year > summary::before { content: "›"; display: inline-block; width: 10px; transition: transform .15s; }
.aside__year > summary .count { margin-left: auto; color: var(--ink-500); font-weight: 500; }
.aside__year[open] > summary::before { transform: rotate(90deg); }
.aside__year > summary:hover { color: var(--brand-600); }
.aside__year > .aside__list { padding-left: var(--space-4); }

/* ───────── Dokumentum-gombok: PDF megtekintés (szem, új lap) + letöltés ───────── */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bia-doc__actions { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.bia-doc__btn--icon { width: 36px; padding: 0; justify-content: center; }
.bia-doc__btn--icon svg { width: 18px; height: 18px; }

/* ───────── Dokumentumtár: telefonra optimalizált nézet ───────── */
.with-aside--docs { grid-template-columns: 280px 1fr; }
.doc-filter__summary { list-style: none; cursor: default; }
.doc-filter__summary::-webkit-details-marker { display: none; }
@media (max-width: 1024px) {
  .with-aside--docs { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .doc-filter { padding: 0; }
  .doc-filter__summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); }
  .doc-filter__summary h4 { margin: 0; }
  .doc-filter__summary::after { content: "›"; font-size: 22px; line-height: 1; color: var(--ink-500); transition: transform .15s; }
  .doc-filter[open] .doc-filter__summary::after { transform: rotate(90deg); }
  .doc-filter > form { padding: 0 var(--space-5) var(--space-5); }
}
@media (max-width: 640px) {
  /* A dokumentumsor két sorba törik: ikon + teljes (tördelt) cím, alatta jobbra a gombok */
  .bia-doc { flex-wrap: wrap; gap: 10px 12px; padding: 12px; }
  .bia-doc__icon { width: 38px; height: 38px; }
  .bia-doc__main { flex: 1 1 calc(100% - 50px); }
  .bia-doc__title { white-space: normal; overflow-wrap: anywhere; }
  .bia-doc__actions { width: 100%; justify-content: flex-end; }
  .bia-doc > .bia-doc__btn { margin-left: auto; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .chip { flex: none; }
  /* Táblázatos dokumentumlista: soronként kártya, a cellák címkével */
  .bia-table--stack thead { display: none; }
  .bia-table--stack, .bia-table--stack tbody, .bia-table--stack tr, .bia-table--stack td { display: block; width: 100%; }
  .bia-table--stack tr { padding: 12px 14px; border-bottom: 1px solid var(--border-default); }
  .bia-table--stack tbody tr:nth-child(even) { background: var(--surface-mist); }
  .bia-table--stack td, .bia-table--stack tbody tr:nth-child(even) td { padding: 2px 0; border: none; background: none; }
  .bia-table--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-500); font-weight: 500; }
  .bia-table--stack .bia-table__title { font-weight: 600; margin-bottom: 4px; }
  .bia-table--stack .bia-table__actions { margin-top: 8px; display: flex; justify-content: flex-end; }
}
