/* ==========================================================================
   GENERIC CLEAN SHELL - alapreteg (reset + elem-alapertekek)
   Eredet: NEW CLEAN IMPLEMENTATION.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* A sticky fejlec miatt a horgony-celok ne bujjanak a fejlec ala. */
:target { scroll-margin-top: calc(var(--header-height) + var(--space-sm)); }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--font-size-title); }
h2 { font-size: var(--font-size-section); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-sm); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; }

p, ul, ol, dl, figure, blockquote, pre, table { margin: 0 0 var(--space-sm); }
p { max-width: var(--measure); }
:where(p):last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--color-primary-strong); }

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

svg { fill: currentColor; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

ul, ol { padding-inline-start: 1.25rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.9em; }

pre {
  overflow-x: auto;
  padding: var(--space-sm);
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
}

table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: var(--space-2xs) var(--space-xs); border-bottom: 1px solid var(--border); }
th { font-weight: var(--font-weight-semibold); }

/* Szeles tartalom (tablazat, kodblokk) sajat vizszintes gorgetot kap. */
.gs-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------- FOKUSZ
   Egyseges, jol lathato fokuszjeloles. A :focus-visible miatt egerrel
   kattintva nem jelenik meg, billentyuzettel viszont igen.               */

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ------------------------------------------------------ KEPERNYOOLVASO */

.gs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link: billentyuzetes felhasznalo elso tab-ja. */
.gs-skip-link {
  position: absolute;
  inset-inline-start: var(--space-sm);
  inset-block-start: -100%;
  z-index: var(--z-skiplink);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: inset-block-start var(--duration-fast) var(--ease-standard);
}
.gs-skip-link:focus-visible { inset-block-start: var(--space-sm); }

/* ------------------------------------------------- MOZGAS-ERZEKENYSEG */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------- NYOMTATAS */

@media print {
  .gs-header, .gs-drawer, .gs-cookie, .gs-to-top { display: none !important; }
  body { background: #fff; color: #000; }
}
