:root {
  --szin-primary: #0f172a;
  --szin-secondary: #2563eb;
  --szin-accent: #06b6d4;
  --szin-surface: #f8fafc;
  --szin-ink: #020617;
  --szin-border: #cbd5e1;
  --szin-muted: #64748b;

  --betu-kijelzo: 'Barlow Condensed', sans-serif;
  --betu-torzs: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.vallalat-alap-keret {
  background-color: var(--szin-surface);
  color: var(--szin-ink);
  font-family: var(--betu-torzs);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CHROME: Banner Strip */
.fejlec-magas-sav {
  position: relative;
  background-color: var(--szin-primary);
  color: #ffffff;
  padding: 4rem 2rem 2.5rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  border-bottom: 4px solid var(--szin-accent);
}

.fejlec-belso-tartalom {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.marka-nev {
  font-family: var(--betu-kijelzo);
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.9;
  color: #ffffff;
}

.marka-alcim {
  font-family: var(--betu-torzs);
  font-size: 0.95rem;
  color: var(--szin-accent);
  margin-top: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-also-sav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 2rem;
}

.nav-link-lista {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-link-elem {
  display: inline-block;
}

.nav-hivatkozas {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav-hivatkozas:hover {
  color: var(--szin-accent);
}

/* MAIN AREA */
.fo-tartalom-terulet {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* HOMEPAGE OPENING: Poster */
.poszter-nyito-resz {
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem 0;
  border-bottom: 2px solid var(--szin-ink);
  margin-bottom: 4rem;
}

.poszter-tipografiai-szerkezet {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.poszter-focim {
  font-family: var(--betu-kijelzo);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--szin-ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  max-width: 90%;
}

.poszter-alcim {
  font-family: var(--betu-torzs);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--szin-secondary);
  line-height: 1.3;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: 0.5rem;
}

.poszter-bevezeto-szoveg {
  font-size: 1.1rem;
  color: var(--szin-ink);
  max-width: 650px;
  margin-bottom: 2.5rem;
  margin-left: 0.5rem;
  line-height: 1.5;
}

.szekcio-cimke-felsorolas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  margin-left: 0.5rem;
}

.szekcio-nev-elem {
  font-family: var(--betu-kijelzo);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--szin-primary);
  background: rgba(15, 23, 42, 0.06);
  padding: 0.2rem 0.8rem;
  border-left: 3px solid var(--szin-secondary);
}

/* ARTICLE PRESENTATION: Dense Index */
.suru-archivum-blokk {
  width: 100%;
  margin-bottom: 4rem;
}

.archivum-fejlec-cim, .lista-focim {
  font-family: var(--betu-kijelzo);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--szin-primary);
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--szin-primary);
  padding-bottom: 0.4rem;
}

.lista-leiras {
  font-size: 1.1rem;
  color: var(--szin-muted);
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.suru-tetel-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.suru-tetel-sor {
  display: flex;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--szin-border);
  gap: 0.5rem;
}

.suru-tetel-link {
  font-family: var(--betu-torzs);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--szin-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
  transition: color 0.15s ease;
}

.suru-tetel-link:hover {
  color: var(--szin-secondary);
}

.vezeto-pontvonal {
  flex: 1;
  border-bottom: 2px dotted var(--szin-border);
  margin: 0 0.5rem;
  min-width: 20px;
  align-self: center;
}

.suru-tetel-datum {
  font-family: var(--betu-kijelzo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--szin-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* SINGLE ARTICLE VIEW */
.cikk-olvaso-blokk {
  max-width: 800px;
  margin: 0 auto;
}

.cikk-fejlec-resz {
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--szin-border);
  padding-bottom: 1.5rem;
}

.cikk-focim {
  font-family: var(--betu-kijelzo);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--szin-primary);
  margin-bottom: 1rem;
}

.cikk-datum-sav {
  font-family: var(--betu-kijelzo);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--szin-secondary);
  letter-spacing: 0.05em;
}

.cikk-reszletes-szoveg p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--szin-ink);
}

.cikk-reszletes-szoveg h2, 
.cikk-reszletes-szoveg h3 {
  font-family: var(--betu-kijelzo);
  text-transform: uppercase;
  color: var(--szin-primary);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.0;
}

.cikk-reszletes-szoveg h2 {
  font-size: 2.2rem;
}

.cikk-reszletes-szoveg h3 {
  font-size: 1.7rem;
}

.cikk-reszletes-szoveg ul, 
.cikk-reszletes-szoveg ol {
  margin: 1rem 0 1.5rem 2rem;
}

.cikk-reszletes-szoveg li {
  margin-bottom: 0.5rem;
}

/* FOOTER */
.lablec-sav {
  background-color: var(--szin-primary);
  color: #94a3b8;
  padding: 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.lablec-belso {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lablec-marka {
  color: #ffffff;
  font-weight: 600;
}

.lablec-elvalaszto {
  color: var(--szin-accent);
}

/* Wide ASCII flow diagrams must scroll within their own box; without this
   they widen every ancestor and the entire page slides horizontally. */
.cikk-reszletes-szoveg pre,
.poszter-bevezeto-szoveg pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--szin-surface);
  border: 1px solid var(--szin-border);
  border-radius: 3px;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--szin-ink);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cikk-reszletes-szoveg pre code,
.poszter-bevezeto-szoveg pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* inline code stays inline, and never widens the column */
.cikk-reszletes-szoveg :not(pre) > code,
.poszter-bevezeto-szoveg :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background-color: var(--szin-surface);
  border: 1px solid var(--szin-border);
  border-radius: 2px;
  padding: 0.1em 0.35em;
}

/* long unbroken strings (URLs, references) must not stretch the column */
.cikk-reszletes-szoveg,
.poszter-bevezeto-szoveg {
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .fejlec-magas-sav {
    padding: 3rem 1.5rem 2.5rem 1.5rem;
    min-height: 200px;
  }

  .marka-nev {
    font-size: 2.5rem;
  }

  .poszter-nyito-resz {
    min-height: auto;
    padding: 1rem 0 3rem 0;
  }

  .poszter-focim {
    font-size: 3.2rem;
    max-width: 100%;
  }

  .suru-tetel-link {
    max-width: 60%;
  }

  /* diagrams: step down so a wide line needs little or no scrolling */
  .cikk-reszletes-szoveg pre,
  .poszter-bevezeto-szoveg pre {
    font-size: 0.8rem;
    padding: 0.8rem 0.85rem;
    line-height: 1.6;
  }

  /* a széles táblázat saját sávban gördüljön, ne vigye magával az oldalt */
  .cikk-reszletes-szoveg table,
  .poszter-bevezeto-szoveg table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
  }
}
