/* Layout for simulated pages (depth 1–2). Scoped to .nf-page so the original
   site CSS keeps control of header, footer and cards. Fonts and text colour are
   inherited from the original site; tune via config.php → 'theme'. */
.nf-page {
  max-width: var(--nf-max, 1140px);
  margin: 24px auto 48px;
  padding: 0 16px;
  box-sizing: border-box;
}
.nf-page *,
.nf-page *::before,
.nf-page *::after {
  box-sizing: border-box;
}
.nf-page img {
  max-width: 100%;
  height: auto;
}
.nf-title {
  margin: 0 0 20px;
  font-size: 2em;
  line-height: 1.2;
}
.nf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--nf-card-min, 240px), 1fr));
  gap: var(--nf-gap, 24px);
  align-items: start;
}
.nf-grid > * {
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}
.nf-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}
.nf-pager a {
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
}
.nf-pager a.is-active {
  background: var(--nf-accent, #c00);
  border-color: var(--nf-accent, #c00);
  color: #fff;
  opacity: 1;
}
.nf-empty {
  opacity: 0.65;
}
.nf-article {
  max-width: var(--nf-article-max, 760px);
}
.nf-kicker {
  color: var(--nf-accent, #c00);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nf-article__title {
  font-size: 2.2em;
  line-height: 1.2;
  margin: 8px 0 12px;
}
.nf-meta {
  opacity: 0.65;
  font-size: 0.9em;
  margin-bottom: 20px;
}
.nf-figure {
  margin: 0 0 24px;
}
.nf-figure img {
  width: 100%;
  display: block;
}
.nf-body {
  font-size: 1.1em;
  line-height: 1.7;
}
.nf-body p {
  margin: 0 0 1em;
}
.nf-body figure {
  margin: 1.5em 0;
}
.nf-body figcaption {
  font-size: 0.85em;
  opacity: 0.65;
  margin-top: 6px;
}
.nf-body blockquote {
  border-left: 3px solid var(--nf-accent, #c00);
  margin: 1.5em 0;
  padding-left: 1em;
  font-style: italic;
}
.nf-body h2,
.nf-body h3 {
  line-height: 1.3;
  margin: 1.5em 0 0.5em;
}
.nf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.nf-tags span {
  border: 1px solid var(--nf-accent, #c00);
  color: var(--nf-accent, #c00);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.85em;
}
.nf-related {
  margin-top: 48px;
}
.nf-section-title {
  font-size: 1.4em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nf-accent, #c00);
}
@media (max-width: 600px) {
  .nf-article__title {
    font-size: 1.7em;
  }
  .nf-title {
    font-size: 1.6em;
  }
}

.top-news .top-img img {
  width: 100%;
  object-fit: cover;
}

.social-news .socialnews-image img {
    width: 100%;
    object-fit: cover;
}

.photo-news .main-img img, .video-news .main-img img {
    width: 100%;
    object-fit: cover;
}

@media (max-width: 540px) {
  .top-news .top-img img {
    width: 100%;
    height: 200px;
  }
}
