:root {
  --font-h: 'Google Sans', system-ui, sans-serif;
  --font-b: 'Google Sans', system-ui, sans-serif;
  --fh: 'Google Sans', system-ui, sans-serif;
  --fb: 'Google Sans', system-ui, sans-serif;
  --km-text: #102036;
  --km-brand: #111c33;
  --km-focus: #6ee7b7;
}
body, button, input, select, textarea { font-family: var(--font-b); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); }
.km-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 9000;
  color: #fff;
  background: var(--km-brand);
}
.km-header__inner {
  display: flex;
  min-height: 72px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  align-items: center;
  gap: 12px 22px;
  justify-content: space-between;
}
.km-header__brand, .km-header__links a, .km-header__toggle {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
}
.km-header__brand {
  gap: 10px;
  font-size: 1.35rem;
  white-space: nowrap;
}
.km-header__brand img { display: block; width: 38px; height: 38px; }
.km-header__links { display: flex; align-items: center; gap: 8px clamp(12px, 2.4vw, 36px); }
.km-header__links a:hover, .km-header__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .27em;
  text-decoration-thickness: 2px;
  color: var(--km-focus);
}
.km-header__toggle { display: none; }
.km-header :focus-visible, .km-skip:focus-visible, .km-footer-directory :focus-visible {
  outline: 3px solid var(--km-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--km-brand);
}
.km-skip {
  position: fixed;
  z-index: 9800;
  left: 14px;
  top: 8px;
  transform: translateY(calc(-100% - 12px));
  color: var(--km-text);
  background: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 700;
}
.km-skip:focus { transform: none; }
html { scroll-padding-top: 84px; }
.km-footer-directory {
  margin: 32px auto;
  max-width: 1220px;
  padding: 20px clamp(16px, 4vw, 40px);
  border-top: 1px solid #8492a6;
}
.km-footer-directory__title {
  color: inherit;
  font: 700 1rem/1.3 var(--font-h);
  margin: 0 0 12px;
}
.km-footer-directory ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 240px),1fr));
  gap: 0 20px;
  padding: 0;
  margin: 0;
}
.km-footer-directory a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
  font-weight: 600;
}
@media (max-width: 780px) {
  .km-header__inner { flex-wrap: wrap; }
  .km-header__links { width: 100%; flex-wrap: wrap; gap: 0 16px; }
  .km-header[data-ready] .km-header__toggle {
    display: inline-flex;
    gap: 6px;
    min-width: 44px;
    padding: 0 10px;
    font: 700 1rem/1.3 var(--font-b);
    border: 1px solid #8c9bb1;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }
  .km-header[data-ready] .km-header__links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: var(--km-brand);
    padding: 8px 16px 16px;
    overflow: auto;
    max-height: calc(100dvh - 72px);
  }
  .km-header[data-ready] .km-header__toggle[aria-expanded="true"] + .km-header__links {
    display: grid;
    gap: 1px;
  }
}

.km-header--legacy { position: fixed; }
body .km-header__brand:hover { color: #fff; }
.site-footer .km-footer-directory, .footer .km-footer-directory { color: inherit; }
.km-footer-directory > ul { list-style: none; }

/* Shared type and palette for the existing PHP and editorial templates. */
:root {
  --km-text: #17232d;
  --km-brand: #141f2c;
  --km-focus: #efc6a0;
  --km-charcoal: #10171e;
  --km-stone: #f4f3ed;
  --km-stone-deep: #e9e9e1;
  --km-bronze: #dcb58f;
  --km-bronze-hover: #efd0ae;
  --km-on-dark: #cbd5dc;
}

body {
  --off-white: var(--km-stone);
  --footer-bg: var(--km-stone-deep);
  --paper: var(--km-stone);
  --paper-2: var(--km-stone-deep);
}

.km-header__links a { font-size: 1rem; }
main h1 { line-height: 1.1; letter-spacing: -.04em; }
main h2 { line-height: 1.16; letter-spacing: -.032em; }

body .hero.is-dark,
body .section--dark { background-color: var(--km-charcoal); }
body .section--gradient { background: linear-gradient(165deg, var(--km-charcoal) 0%, var(--km-brand) 100%); }
body .hero.is-dark {
  --accent: var(--km-bronze);
  background-image: linear-gradient(145deg, var(--km-charcoal), var(--km-brand));
}
body .hero.is-dark h1,
body .landing-hero h1,
body .geo .geo-hero h1 { font-size: clamp(2.25rem, 1.35rem + 4.15vw, 4.35rem); }
body .hero.is-dark .badge--accent {
  color: var(--km-bronze);
  border-color: #ad825b;
  background: #dcb58f13;
}
body .hero.is-dark .hero__sub {
  font-size: clamp(1.06rem, 1rem + .45vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  color: var(--km-on-dark);
}
body .landing-hero { background-color: var(--km-stone); }
body .hero-sub h1,
body .article-head h1 { font-size: clamp(2rem, 1.2rem + 3.3vw, 3.75rem); }
body .section__header h2 { font-size: clamp(1.8rem, 1.3rem + 2.5vw, 3.4rem); }
body .geo .geo-hero { background: var(--km-brand); }
body .geo .geo-eyebrow { color: var(--km-bronze); }
body .geo .geo-section--soft { background: var(--km-stone); }

body .hero .btn--accent,
body .btn--nav,
body .geo .geo-action {
  color: var(--km-charcoal);
  background: var(--km-bronze);
  border-color: var(--km-bronze);
  box-shadow: none;
}
body .hero .btn--accent:hover,
body .btn--nav:hover,
body .geo .geo-action:hover {
  background: var(--km-bronze-hover);
  border-color: var(--km-bronze-hover);
  box-shadow: none;
}

body .site-footer { background: var(--km-charcoal); color: var(--km-on-dark); }
body .site-footer .foot-grid h2,
body .footer__col-title,
body .km-footer-directory__title { font-size: 1rem; line-height: 1.35; }
body .footer__link,
body .footer__info,
body .site-footer .foot-grid p,
body .site-footer .foot-grid li { font-size: 1rem; line-height: 1.55; }
body .footer__link { padding-block: 4px; }
body .footer__trust img {
  max-height: 78px;
  max-width: min(28vw, 190px);
  object-fit: contain;
}
body .footer__bottom,
body .site-footer .foot-legal { line-height: 1.6; }
body .footer__col-title { color: var(--km-text); }

@media (max-width: 480px) {
  body .hero.is-dark h1,
  body .landing-hero h1,
  body .geo .geo-hero h1 {
    font-size: clamp(2.05rem, 8.5vw, 2.75rem) !important;
  }
}

/* Shared typography for the PHP, campaign and editorial templates. */
:root {
  --km-font: 'Google Sans', system-ui, sans-serif;
  --font-h: var(--km-font);
  --font-b: var(--km-font);
  --f-display: var(--km-font);
  --f-body: var(--km-font);
  --f-mono: var(--km-font);
  --fh: var(--km-font);
  --fb: var(--km-font);
  --km-size-body: 1.0625rem;
  --km-size-small: .9375rem;
  --km-size-lead: clamp(1.125rem, 1rem + .45vw, 1.3125rem);
  --km-size-h1: clamp(2rem, 1.25rem + 3.5vw, 4rem);
  --km-size-h2: clamp(1.55rem, 1.15rem + 2vw, 2.75rem);
  --km-size-h3: clamp(1.25rem, 1.1rem + .7vw, 1.65rem);
}
html[data-textsize="large"] { font-size: 112.5%; }
html[data-textsize="xlarge"] { font-size: 125%; }
body { font-size: var(--km-size-body); line-height: 1.65; }
body :is(button,input,select,textarea) { font-family: var(--km-font); }
main :is(p,.text-sm,.card__desc,.card-lead,.for-whom p,.sources) {
  font-size: var(--km-size-body);
  line-height: 1.65;
}
body main :is(.lead,.hero__sub,.text-lead,.geo-lead) { font-size: var(--km-size-lead); }
body main :is(h1,h2,h3,p) { overflow-wrap: anywhere; }

body .hero.is-dark h1,
body .landing-hero h1,
body .geo .geo-hero h1,
body main .hero-sub h1,
body main .article-head h1,
body main h1 { font-size: var(--km-size-h1); line-height: 1.12; }
body main .section__header h2,
body main .prose h2,
body main h2 { font-size: var(--km-size-h2); line-height: 1.2; }
body main .prose h3,
body main h3 { font-size: var(--km-size-h3); line-height: 1.25; }
body main :is(.story-card h2,.story-card h3,.side-story h3,.card__title) {
  font-size: var(--km-size-h3);
  line-height: 1.25;
}
body main :is(.eyebrow,.kicker,.article-meta,.text-xs,.badge) { font-size: var(--km-size-small); }
body main .prose :is(p,li,td,blockquote) { font-size: var(--km-size-body); }
body main :is(code,pre) { font-family: ui-monospace, monospace; }
body main .toc a { color: #173c67; text-decoration: underline; }
body .footer__info :is(a,.accent) { color: #16416d; text-decoration: underline; }
body main .landing-hero h1 span { color: #285447 !important; }
body main .landing-hero .text-lead { color: #34414e; }
body main .contact-grid :is(a,span.accent) { color: #16416d; }
body .form__honeypot[hidden] { display: none !important; }
body main .prose .table-wrap { max-width: 100%; overflow-x: auto; }
body main .prose .table-wrap:focus-visible { outline: 3px solid #1b62a3; outline-offset: 2px; }
body main .prose :is(table,pre) { overflow-wrap: normal; }
body main .prose a { text-decoration-thickness: .09em; text-underline-offset: .18em; }
body main [data-animate],
body.page-audit-ai-lathatosag main .rv {
  opacity: 1;
  transition-property: transform;
}
body .form__step.form__step--active { animation: none; }
body .s--dark .note { color: #b9c6d7; }
body .footer .footer__bottom { color: #526174; }
body .site-footer .footer__bottom { color: var(--km-on-dark); }

.km-header .km-nav-group { position: relative; }
.km-nav-group > summary {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.km-nav-group > summary::-webkit-details-marker { display: none; }
.km-nav-group > summary::after { content: ""; width: .4em; height: .4em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.km-nav-group[open] > summary::after { transform: rotate(225deg); }
.km-header .km-nav-panel {
  display: grid;
  justify-items: stretch;
  min-width: min(20rem,calc(100vw - 32px));
  position: absolute;
  inset: 100% 0 auto auto;
  padding: .55rem .8rem;
  background: var(--km-brand);
  border: 1px solid #778594;
}
.km-header .km-nav-panel a {
  width: 100%;
  padding: .45rem .55rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 781px) {
  .km-home .km-header__links > a[href="/kapcsolat/"] { display: none; }
}
@media (max-width: 780px) {
  .km-header .km-nav-panel { position: static; min-width: 0; margin-bottom: 8px; }
  .km-header .km-nav-group { width: 100%; }
}
@media (max-width: 480px) {
  body .hero.is-dark h1, body .landing-hero h1, body .geo .geo-hero h1 { font-size: var(--km-size-h1) !important; }
}

.km-reading-footer {
  max-width: 1220px;
  margin: 20px auto 0;
  padding: 16px clamp(16px,4vw,40px) 0;
  border-top: 1px solid #8492a6;
}
.km-reading-footer summary {
  display: list-item;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 8px;
  cursor: pointer;
  font-size: var(--km-size-body);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  color: inherit;
}
.km-reading-footer .rp-panel {
  position: static;
  width: min(100%,34rem);
  max-width: 100%;
  margin-block: 8px 10px;
  padding: clamp(12px,3vw,20px);
  background: #fff;
  color: #17232d;
  border: 1px solid #758393;
  border-radius: 8px;
}
.km-reading-footer fieldset { min-inline-size: 0; padding: 0; border: 0; margin: 0; }
.km-reading-footer legend { font-weight: 700; margin-bottom: 10px; }
.km-reading-footer .rp-size { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.km-reading-footer :is(button,.rp-toggle) { min-height: 44px; font-size: var(--km-size-small); }
.km-reading-footer button {
  color: #17232d;
  background: #fff;
  border: 1px solid #586979;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  max-width: 100%;
}
.km-reading-footer button[aria-pressed="true"] { background: #1c4168; color: #fff; }
.km-reading-footer .rp-toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.km-reading-footer .rp-toggle input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #1c4168; }
.km-reading-footer .rp-reset { margin-top: 10px; }
.km-reading-footer .rp-status { margin: 6px 0 0; min-height: 1.3em; color: #173c67; font-size: var(--km-size-small); }
.km-reading-footer :focus-visible { outline: 3px solid #1b62a3; outline-offset: 3px; }
.site-footer .km-reading-footer summary:focus-visible { outline-color: var(--km-focus); }

html[data-high-contrast="true"] body {
  --ink: #101010; --body: #101010; --muted: #222;
  --paper: #fff; --paper-2: #f4f4f4; --line: #666;
  --off-white: #fff; --gray-600: #222; --gray-700: #181818; --gray-800: #101010;
  --primary: #183d66; --b-600: #183d66;
  --km-stone: #fff; --km-stone-deep: #f3f3f3; --km-on-dark: #fff;
}
html[data-high-contrast="true"] body a,
html[data-link-highlight="true"] body a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
html[data-link-highlight="true"] body a { text-decoration-style: double; }
html[data-reduced-motion="true"] { scroll-behavior: auto; }
html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after { transition: none !important; animation: none !important; }
html[data-reduced-motion="true"] :is([data-animate], [data-rv], .rv) { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body :is([data-animate], [data-rv], .rv) { opacity: 1 !important; transform: none !important; }
}
