/* ==========================================================================
   A jövő múltja – stíluslap
   Színek és betűtípus: az NJSZT arculata (njszt_theme), hogy a két oldal
   összetartozzon. Montserrat helyi fájlokból (assets/fonts/).
   ========================================================================== */

/* Montserrat – ugyanazok a fájlok, mint a njszt_theme/fonts mappában */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/montserrat-v31-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/montserrat-v31-latin_latin-ext-italic.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/montserrat-v31-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 700; font-display: swap;
  src: url('../fonts/montserrat-v31-latin_latin-ext-700italic.woff2') format('woff2'); }

:root {
  /* NJSZT alapszínek (njszt_style.css) */
  --njszt-color-blue: #1f3b6e;   /* Neumann-kék */
  --njszt-color-cblue: #076fd7;  /* Neumann-kék hover */
  --njszt-color-red: #ee3030;    /* piros */
  --njszt-color-cred: #ef5c5c;   /* piros hover */
  --njszt-color-green: #2ea762;  /* zöld */
  --njszt-color-black: #373b3f;  /* fekete */
  --njszt-color-sblack: #646464; /* szürke */
  --njszt-footer: #234465;       /* lábléc */
  --njszt-mid-blue: #386da1;     /* hírlevél-sáv */
  --njszt-orange: #f0a459;       /* hero "tovább" gomb */

  /* Az oldal szerepei ezekre épülnek */
  --ink: var(--njszt-color-blue);        /* címsorok, sötét sávok, gombok */
  --text: var(--njszt-color-black);      /* folyószöveg */
  --ink-soft: #5a5f66;                   /* másodlagos szöveg */
  --paper: #f4f6f9;                      /* háttér */
  --white: #ffffff;
  --case: #e3e9f2;                       /* világos Neumann-kék felület (a korábbi bézs helyett) */
  --case-deep: #c3cfe1;
  --red: var(--njszt-color-red);         /* díszítés: csíkok, aláhúzás */
  --red-text: #d12626;                   /* kis piros szöveg, kicsit sötétebb az olvashatóságért */
  --link: var(--njszt-color-blue);
  --link-hover: var(--njszt-color-cblue);
  --led-on: var(--njszt-color-green);
  --led-off: var(--njszt-color-red);
  --led-wait: var(--njszt-orange);
  --line: #d6dce5;

  --f-ui: 'Montserrat', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-text: var(--f-ui);

  --wrap: 1200px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --r-sm: 6px;   /* mint az NJSZT kártyák/gombok */
  --r-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); font-weight: 700; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-ui); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100; font-family: var(--f-ui); }
.skip:focus { left: 1rem; }
.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-ui); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: .8rem 1.2rem; border-radius: var(--r-sm);
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--white); }
.btn--ghost { border-color: transparent; text-decoration: underline; padding-inline: .4rem; }
.btn--ghost:hover { background: transparent; color: var(--red); }

/* ---------- Márkajel: az ITK-logó csíkjai ---------- */
.brand__mark { display: inline-grid; gap: 3px; width: 34px; flex: none; }
.brand__mark i { display: block; height: 4px; background: var(--red); border-radius: 1px; }
.brand__mark i:nth-child(2) { width: 70%; }
.brand__mark i:nth-child(3) { width: 88%; }
.brand__mark i:nth-child(4) { width: 55%; }
.brand__mark i:nth-child(5) { width: 78%; }

/* ---------- Fejléc ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--f-ui); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand__sub { font-family: var(--f-ui); font-size: .82rem; color: var(--ink-soft); }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; background: none; border: 2px solid var(--ink);
  border-radius: var(--r-sm); padding: .45rem .75rem; font-family: var(--f-ui); font-weight: 700; font-size: .95rem; color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .65rem; font-family: var(--f-ui); font-weight: 700; font-size: .98rem;
  color: var(--ink); text-decoration: none; border-radius: var(--r-sm);
}
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.site-search { display: flex; }
.site-search input {
  width: 12.5rem; font: inherit; font-family: var(--f-ui); font-size: .92rem; padding: .5rem .7rem;
  border: 1px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--paper); color: var(--ink);
}
.site-search button {
  font-family: var(--f-ui); font-weight: 700; font-size: .9rem; border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  padding: .5rem .75rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gap) 1.5rem;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .7rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--paper); }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: 1rem; }
  .site-search input { flex: 1; width: auto; }
}

/* ---------- Címlap: hero ---------- */
.hero { background: var(--case); padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero__title {
  font-weight: 700; font-size: clamp(3rem, 8.6vw, 7rem); line-height: .95; letter-spacing: -0.03em; margin: 0 0 1.5rem;
}
.hero__title span { display: block; padding-left: .55em; }
.hero__lead { max-width: 36em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Látogatói kártya, mint egy gépház előlapja: szellőzőrés + LED */
.visit-card {
  background: var(--white); border-radius: var(--r-md); padding: 1.4rem 1.5rem 1.25rem;
  font-family: var(--f-ui); font-size: .98rem; position: relative;
  border: 1px solid var(--case-deep);
}
.visit-card::before {
  content: ""; display: block; height: 10px; margin: -0.4rem 0 1rem;
  background: repeating-linear-gradient(90deg, var(--case-deep) 0 22px, transparent 22px 30px);
  border-radius: 3px; opacity: .8;
}
.visit-card__head { font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.visit-card__facts { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .35rem; }
.visit-card__facts div { display: flex; justify-content: space-between; gap: 1rem; }
.visit-card__facts dt { color: var(--ink-soft); }
.visit-card__facts dd { margin: 0; font-weight: 700; text-align: right; }
.visit-card--sticky { position: sticky; top: 96px; }
.visit-card__map { margin: 1rem 0 0; }

.hours { font-family: var(--f-ui); }
.hours__status { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; margin: 0 0 .75rem; min-height: 1.5em; }
.hours__status::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--led-state, var(--case-deep));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--led-state, var(--case-deep)) 22%, transparent), 0 0 10px var(--led-state, transparent);
}
.hours__status[data-state="open"] { --led-state: var(--led-on); }
.hours__status[data-state="closed"] { --led-state: var(--led-off); }
.hours__status[data-state="maybe"] { --led-state: var(--led-wait); }
.hours__table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.hours__table th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: .18rem 0; }
.hours__table td { text-align: right; padding: .18rem 0; }
.hours__table .is-today th, .hours__table .is-today td { color: var(--ink); font-weight: 700; }
.hours__note { font-size: .85rem; color: var(--ink-soft); margin: .75rem 0 0; }
.site-footer .hours__status { font-size: 1rem; }

/* ---------- Időszalag (a címlap egyetlen hangos eleme) ---------- */
.timeline { background: var(--ink); color: var(--white); position: relative; }
.timeline__track {
  list-style: none; margin: 0; padding: 2.25rem max(var(--gap), calc((100% - var(--wrap)) / 2)) 2rem;
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--red) transparent;
  scroll-padding-inline: max(var(--gap), calc((100% - var(--wrap)) / 2));
  cursor: grab;
}
.timeline__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.timeline__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.25rem; height: 2px; background: rgba(255,255,255,.18);
}
.timeline__item { flex: 0 0 auto; scroll-snap-align: start; position: relative; }
.timeline__item a {
  display: grid; gap: .3rem; padding: 1.1rem 2.5rem 0 0; color: var(--white); text-decoration: none; min-width: 9.5rem; max-width: 14rem;
  position: relative;
}
.timeline__item a::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 2px; height: 14px; background: var(--red);
}
.timeline__year { font-family: var(--f-ui); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.timeline__name { font-family: var(--f-ui); font-size: .95rem; color: rgba(255,255,255,.78); line-height: 1.3; }
.timeline__item a:hover .timeline__name, .timeline__item a:focus-visible .timeline__name { color: var(--white); text-decoration: underline; }
.timeline__item a:hover::before { height: 22px; }

/* ---------- Szakaszok ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--white); }
.section--beige { background: var(--case); }
.section--flush { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.section__title { margin: 0; }
.section__title + .events, .section__title + .past-list, .section__title + .empty { margin-top: 1.25rem; }
.section__more { font-family: var(--f-ui); font-weight: 700; font-size: 1rem; white-space: nowrap; }

.page-head { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1.5rem; }
.page-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: .4em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 38em; color: var(--text); }
.page-narrow { max-width: 760px; padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-wide { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-narrow.wrap { width: min(100% - 2 * var(--gap), 760px); }
.static-page h2 { margin-top: 2em; }
.static-page h3 { margin-top: 1.5em; }

.empty { border: 2px dashed var(--case-deep); border-radius: var(--r-md); padding: 1.5rem; font-family: var(--f-ui); }
.empty p:last-child { margin: 0; }
.todo-note { background: #fff4cf; border-left: 4px solid var(--led-wait); padding: .8rem 1rem; font-family: var(--f-ui); font-size: .95rem; }

/* ---------- Események ---------- */
.events { display: grid; }
.event {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 9rem; gap: 1.25rem; align-items: start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.event:first-child { padding-top: .25rem; }
.event__date { display: grid; justify-items: start; font-family: var(--f-ui); line-height: 1; }
.event__day { font-weight: 700; font-size: 2.9rem; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.event__month { font-weight: 700; font-size: 1.05rem; color: var(--red-text); margin-top: .2rem; }
.event__wday { font-size: .85rem; color: var(--ink-soft); margin-top: .25rem; }
.event__title { font-size: 1.3rem; margin-bottom: .35rem; }
.event__title a { color: var(--ink); text-decoration: none; }
.event__title a:hover { text-decoration: underline; }
.event__meta { font-family: var(--f-ui); font-size: .95rem; color: var(--ink-soft); margin-bottom: .4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.event__summary { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.event__img { width: 9rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--case); }
.badge { font-family: var(--f-ui); font-weight: 700; font-size: .78rem; padding: .2rem .5rem; border-radius: 99px; }
.badge--live { background: var(--led-on); color: var(--white); }

.past-list { list-style: none; padding: 0; margin: 0; }
.past-list li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.past-list time { font-family: var(--f-ui); font-size: .95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Hírek ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.news-grid > .news--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.news { display: grid; align-content: start; gap: .9rem; }
.news__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-sm); background: var(--case); }
.news__media img { width: 100%; height: 100%; object-fit: cover; }
.news__placeholder { display: grid; place-items: center; height: 100%; }
.news__placeholder .brand__mark { width: 72px; gap: 6px; opacity: .55; }
.news__placeholder .brand__mark i { height: 8px; }
.news__date { font-family: var(--f-ui); font-size: .92rem; color: var(--ink-soft); }
.news__title { font-size: 1.25rem; margin: .25rem 0 .5rem; }
.news--featured .news__title { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
.news__title a { color: var(--ink); text-decoration: none; }
.news__title a:hover { text-decoration: underline; }
.news__summary { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.news--featured .news__summary { font-size: 1.1rem; color: var(--text); }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; font-family: var(--f-ui); }
.pager a { min-width: 2.5rem; text-align: center; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: var(--white); }
.pager a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.archive-link { margin-top: 2rem; font-family: var(--f-ui); font-weight: 700; }

/* ---------- Tárgyak: múzeumi tárgycímke ---------- */
.objects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.object { display: grid; grid-template-rows: auto 1fr; }
.object__media {
  display: grid; place-items: center; aspect-ratio: 1; background: var(--case); border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden;
}
.object__media img { width: 100%; height: 100%; object-fit: cover; }
.object__initial { font-family: var(--f-ui); font-weight: 700; font-size: 5rem; color: var(--case-deep); letter-spacing: -0.03em; }
.object__label { background: var(--white); padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 var(--r-sm) var(--r-sm); flex: 1; }
.object__title { font-size: 1.1rem; margin: 0 0 .15rem; }
.object__title a { color: var(--ink); text-decoration: none; }
.object__title a:hover { text-decoration: underline; }
.object__year { font-family: var(--f-ui); font-weight: 700; color: var(--red-text); font-size: .95rem; margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
.object__teaser { margin: 0; font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }

.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding: .75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.letters { display: flex; flex-wrap: wrap; gap: .15rem; font-family: var(--f-ui); font-weight: 700; }
.letters a, .letters span { min-width: 2rem; text-align: center; padding: .35rem .45rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.letters a:hover { background: var(--paper); }
.letters span { color: #b4b8bf; }
.letters a[aria-current="page"] { background: var(--ink); color: var(--white); }
.catalog-filter input { font-family: var(--f-ui); font-size: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 17rem; background: var(--paper); color: var(--ink); }
.filter-empty { font-family: var(--f-ui); }

/* Tárgyoldal */
.object-page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem); }
.object-page__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-bottom: 2.5rem; }
.object-page__media figure { margin: 0; background: var(--case); border-radius: var(--r-md); overflow: hidden; }
.object-page__media img { width: 100%; }
.object-page__noimg { aspect-ratio: 4 / 3; background: var(--case); border-radius: var(--r-md); display: grid; place-items: center; font-family: var(--f-ui); font-weight: 700; font-size: 8rem; color: var(--case-deep); }
.object-page__label { background: var(--white); border-top: 4px solid var(--ink); padding: 1.5rem 1.6rem; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.object-page__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: .5rem; }
.object-page__teaser { font-size: 1.05rem; }
.specs { margin: 1.25rem 0 0; font-family: var(--f-ui); font-size: .95rem; }
.specs div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 400; }
.object-page__body { max-width: 720px; }
.object-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); font-family: var(--f-ui); }
.object-nav a { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.object-nav span { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.object-nav__next { text-align: right; grid-column: 2; }

/* ---------- Cikk ---------- */
.article { max-width: 780px; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem); }
.article.wrap { width: min(100% - 2 * var(--gap), 780px); }
.crumbs { font-family: var(--f-ui); font-size: .95rem; margin-bottom: 1rem; }
.article__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; }
.article__meta { font-family: var(--f-ui); color: var(--ink-soft); }
.article__when { font-family: var(--f-ui); font-weight: 700; font-size: 1.2rem; display: inline-block; padding: .5rem .9rem; background: var(--case); border-left: 4px solid var(--red); }
.article__hero { margin: 1.5rem 0 2rem; }
.article__hero img { border-radius: var(--r-sm); width: 100%; }
.article__foot { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--r-sm); margin: 1.25rem 0; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-family: var(--f-ui); font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--red); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: .95rem; margin: 1.5rem 0; }
.prose td, .prose th { border-top: 1px solid var(--line); padding: .5rem .5rem .5rem 0; vertical-align: top; text-align: left; }
.prose td p { margin: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-sm); }

/* ---------- Statikus oldalak elemei ---------- */
.visit-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: 1rem; margin-bottom: 1rem; }
.price-table th { text-align: left; font-weight: 400; padding: .55rem 1rem .55rem 0; border-bottom: 1px solid var(--line); }
.price-table td { text-align: right; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.partner { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.see-also { display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--f-ui); font-weight: 700; margin-top: 2.5rem; }
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.pub-list h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.pub-list p { margin: 0; color: var(--ink-soft); }

.portraits, .photo-grid, .albums { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: var(--gap); }
.portraits { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.portraits a { display: grid; gap: .5rem; text-decoration: none; color: var(--ink); font-family: var(--f-ui); font-weight: 700; }
.portraits img { aspect-ratio: 7 / 10; object-fit: cover; background: var(--case); border-radius: var(--r-sm); width: 100%; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--r-sm); }
.albums { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.album a { display: grid; gap: .4rem; text-decoration: none; color: var(--ink); font-family: var(--f-ui); }
.album__cover { aspect-ratio: 3 / 2; background: var(--case); border-radius: var(--r-sm); overflow: hidden; display: block; }
.album__cover img { width: 100%; height: 100%; object-fit: cover; }
.album__title { font-weight: 700; font-size: 1.1rem; }
.album__count { color: var(--ink-soft); font-size: .9rem; }
.video-list { font-family: var(--f-ui); }
.wide-figure { margin: 1.5rem 0; }

.search-big { display: flex; gap: .5rem; margin: 1rem 0 2rem; }
.search-big input { flex: 1; font-family: var(--f-ui); font-size: 1.1rem; padding: .75rem 1rem; border: 2px solid var(--ink); border-radius: var(--r-sm); background: var(--white); color: var(--ink); }
.search-count { font-family: var(--f-ui); }
.search-group { margin-top: 2rem; font-size: 1.3rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.search-results a { font-family: var(--f-ui); font-weight: 700; font-size: 1.1rem; }
.search-results p { margin: .25rem 0 0; font-size: 1rem; color: var(--ink-soft); }

/* ---------- Felfedezés blokk ---------- */
.explore { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.explore__item {
  display: grid; align-content: start; gap: .5rem; padding: 1.5rem 1.5rem 1.75rem 0; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--case-deep); margin-right: 1.5rem;
}
.explore__item:last-child { border-right: 0; margin-right: 0; }
.explore__title { font-family: var(--f-ui); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.explore__text { font-size: 1rem; color: var(--ink-soft); }
.explore__item:hover .explore__title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--njszt-footer); color: rgba(255,255,255,.85); font-family: var(--f-ui); font-size: .98rem; padding-top: 3rem; }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--gap); padding-bottom: 2.5rem; }
.site-footer__name, .site-footer__head { font-weight: 700; color: var(--white); font-size: 1.05rem; margin-bottom: .75rem; }
.site-footer .plain li { margin-bottom: .4rem; }
.site-footer .hours__table th { color: rgba(255,255,255,.65); }
.site-footer .hours__table td, .site-footer .hours__table .is-today th { color: var(--white); }
.site-footer .hours__note { color: rgba(255,255,255,.6); }
.site-footer__social { display: flex; gap: 1rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: rgba(255,255,255,.6); }

/* ---------- Képnagyító ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 16, 32, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox button { position: fixed; top: 1rem; right: 1rem; font-family: var(--f-ui); font-weight: 700; background: var(--white); color: var(--ink); border: 0; padding: .6rem 1rem; border-radius: var(--r-sm); cursor: pointer; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1000px) {
  .hero__grid, .visit-layout, .object-page__grid { grid-template-columns: 1fr; }
  .visit-card--sticky { position: static; }
  .objects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore__item:nth-child(2) { border-right: 0; margin-right: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .news-grid, .news-grid > .news--featured { grid-template-columns: 1fr; }
  .event { grid-template-columns: 4rem minmax(0, 1fr); }
  .event__img { display: none; }
  .objects { gap: .9rem; }
  .object__teaser { display: none; }
  .explore { grid-template-columns: 1fr; }
  .explore__item { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--case-deep); }
  .past-list li { grid-template-columns: 1fr; gap: .1rem; }
  .specs div { grid-template-columns: 1fr; gap: .1rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .catalog-filter, .catalog-filter input { width: 100%; min-width: 0; }
  .brand__sub { display: none; }
  .timeline__year { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .timeline__item a::before { transition: height .15s ease; }
}
@media print {
  .site-header, .site-footer, .timeline, .hero__actions, .article__foot { display: none; }
  body { background: #fff; }
}

/* A link-kártyákon belüli leíró szöveg ne legyen félkövér (a globális a { font-weight: 700 } miatt) */
.explore__text, .album__count, .object-nav span { font-weight: 400; }
