/* Cikkoldal: fejléc és olvasható szövegtörzs.
   A szöveges blokkok keskenyebb hasábban futnak (kb. 70 karakter soronként),
   a képek, táblázatok és videók a teljes hasábszélességet használhatják. */
.news-detail .hv-article__head {
  margin-bottom: 24px;
  padding-left: 18px;
  border-left: 4px solid #e10600;
}

.news-detail .hv-article__cat {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #e10600;
  border-radius: 3px;
}

.news-detail .hv-article__title {
  margin: 0 0 14px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}

.news-detail .hv-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: #a8a8a8;
}

.news-detail .hv-article__meta i {
  margin-right: 6px;
  color: #7f7f7f;
}

/* Szövegtörzs */
.news-detail .news-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #dcdcdc;
}

.news-detail .news-content p,
.news-detail .news-content li {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #dcdcdc;
}

.news-detail .news-content > p,
.news-detail .news-content > ul,
.news-detail .news-content > ol,
.news-detail .news-content > h2,
.news-detail .news-content > h3,
.news-detail .news-content > h4,
.news-detail .news-content > blockquote {
  max-width: 70ch;
}

/* A képet tartalmazó bekezdés maradhat teljes szélességű */
.news-detail .news-content > p:has(img),
.news-detail .news-content > p:has(iframe) {
  max-width: none;
}

.news-detail .news-content > p {
  margin-bottom: 1.25rem;
}

/* Bevezető bekezdés */
.news-detail .news-content > p:first-of-type:not(:has(img)) {
  font-size: 1.28rem;
  line-height: 1.6;
  color: #f2f2f2;
}

.news-detail .news-content h2,
.news-detail .news-content h3,
.news-detail .news-content h4 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* Ha a szerkesztőben a cikkbe is került H1, az a cikk címe alatt már csak alcím */
.news-detail .news-content h1 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  max-width: 70ch;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.news-detail .news-content h2 { font-size: 1.75rem; }
.news-detail .news-content h3 { font-size: 1.45rem; }
.news-detail .news-content h4 { font-size: 1.2rem; }

.news-detail .news-content ul,
.news-detail .news-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}

.news-detail .news-content li + li {
  margin-top: 0.4rem;
}

.news-detail .news-content a {
  color: #ff5a55;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-detail .news-content a:hover {
  color: #fff;
}

.news-detail .news-content blockquote {
  margin: 1.75rem 0;
  padding: 4px 0 4px 18px;
  font-style: italic;
  color: #cfcfcf;
  border-left: 4px solid #e10600;
}

.news-detail .news-content blockquote p {
  color: inherit;
}

/* Keskeny képernyőn a széles táblázat a saját keretén belül görgethető, nem tolja szét az oldalt */
@media (max-width: 767.98px) {
  .news-detail .news-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 575.98px) {
  .news-detail .hv-article__head {
    padding-left: 14px;
  }

  .news-detail .news-content,
  .news-detail .news-content p,
  .news-detail .news-content li {
    font-size: 1.06rem;
    line-height: 1.7;
  }

  .news-detail .news-content > p:first-of-type:not(:has(img)) {
    font-size: 1.16rem;
  }
}
