/* Reset + tipográfia + container + sávok */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sticky header: csak itt – a célpont scroll-margin NE ismételje (összeadódna) */
  scroll-padding-top: var(--cn-header-offset);
  /* Samsung/Android Chrome: a csak body-n lévő overflow-x gyakran nem fogja a vízszintes pan-t */
  overflow-x: clip;
  max-width: 100%;
}

body.cn-body {
  margin: 0;
  background: var(--white);
  color: var(--slate-700);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Hub + home (life keret): mobil minimális törzsszöveg 18px */
@media (max-width: 799px) {
  body.cn-body:has(.cn-content--hub),
  body.cn-body:has(.cn-content--life) {
    font-size: 18px;
  }
}

strong,
b {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
.cn-section-title h2,
.cn-content__title h1,
.cn-hub-fresh__title,
.cn-hub-topic__title,
.cn-hub-hero__copy h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal-700);
  hyphens: none;
  -webkit-hyphens: none;
  letter-spacing: normal;
  margin: 0;
  text-align: left;
}

h1 {
  font-size: 38px;
  line-height: 1.25;
}

h2 {
  font-size: 28px;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.cn-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (max-width: 799px) {
  .cn-container {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

.cn-section {
  padding: var(--space-6) 0;
  margin-top: 0;
}

.cn-mt {
  margin-top: var(--space-4);
}

.cn-main {
  padding-bottom: 84px;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 799px) {
  .cn-main {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .cn-main {
    padding-bottom: 0;
  }
}

/* Sáv-hátterek (ritmus: fehér → aqua → krém) */
.cn-band--white {
  background: var(--white);
}

.cn-band--cream {
  background: var(--cream-100);
  padding: var(--band-padding);
}

.cn-band--cream-soft {
  background: var(--cream-50);
  padding: var(--band-padding);
}

.cn-band--aqua {
  background: var(--aqua-100);
  padding: var(--band-padding);
}

.cn-band--aqua-soft {
  background: var(--aqua-50);
  padding: var(--band-padding);
}

/* Hátteres sáv: tartalom ne a szín szélén induljon */
.cn-band--cream > .cn-container,
.cn-band--cream-soft > .cn-container,
.cn-band--aqua > .cn-container,
.cn-band--aqua-soft > .cn-container,
.cn-hero.cn-band--cream > .cn-container,
.cn-tools-highlight > .cn-container {
  padding-left: var(--band-gutter);
  padding-right: var(--band-gutter);
}

@media (max-width: 799px) {
  .cn-band,
  .cn-band--cream,
  .cn-band--cream-soft,
  .cn-band--aqua,
  .cn-band--aqua-soft {
    padding: 20px 0;
  }

  .cn-band--cream > .cn-container,
  .cn-band--cream-soft > .cn-container,
  .cn-band--aqua > .cn-container,
  .cn-band--aqua-soft > .cn-container,
  .cn-hero.cn-band--cream > .cn-container,
  .cn-tools-highlight > .cn-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/*
 * Hátteres sávok a life/container gutterben:
 * a .cn-life-stack > * { max-width:100% } megakadályozza a negatív margin
 * szélesség-növelését → balra tolódik, jobb oldalon fehér hézag.
 */
.cn-container .cn-trust,
.cn-container .cn-band--cream,
.cn-container .cn-band--cream-soft,
.cn-container .cn-band--aqua,
.cn-container .cn-band--aqua-soft,
.cn-container .cn-news--cta,
.cn-container .cn-band.cna1,
.cn-container #eszkozok {
  max-width: none;
  width: calc(100% + 2 * var(--gutter));
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  box-sizing: border-box;
}

/* Tipográfia segédek */
.cn-kicker {
  display: inline-flex;
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.cn-meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.cn-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-700);
}

.cn-link-more,
.cn-section-title a,
.cn-block-head a,
.cn-hub-fresh__more,
.cn-hub-topic__more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--coral-500);
}

.cn-link-more:hover,
.cn-section-title a:hover,
.cn-block-head a:hover,
.cn-hub-fresh__more:hover,
.cn-hub-topic__more:hover {
  color: var(--coral-600);
  text-decoration: underline;
}

.cn-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.cn-section-title h2 {
  font-size: 28px;
  line-height: 1.3;
}

.cn-section-title p {
  margin: 6px 0 0;
  color: var(--slate-500);
  font-size: 16px;
  line-height: 1.5;
}

.cn-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.cn-block-head h2 {
  font-size: 28px;
}

.cn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--slate-500);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 18px;
}

.cn-breadcrumb a {
  color: var(--teal-700);
  font-weight: 600;
}

@media (max-width: 480px) {
  h1,
  .cn-content__title h1,
  .cn-hub-hero__copy h1 {
    font-size: 28px;
  }

  h2,
  .cn-section-title h2,
  .cn-hub-fresh__title,
  .cn-hub-topic__title {
    font-size: 22px;
  }

  h3 {
    font-size: 17px;
  }

  body.cn-body {
    font-size: 16px;
  }
}
