/* AIaboutAI — Hírek és archívum. A közös színeket a style.css tartalmazza. */
.news-shell { width: min(1180px,calc(100% - 36px)); margin: 42px auto 70px; flex: 1; }
.news-head { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:28px; }
.news-kicker { margin:0 0 7px; color:var(--accent); font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.news-head p { color:var(--muted); margin:8px 0 0; }
.news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:24px 0; }
.news-card { min-width:0; background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.news-card-link { display:block; height:100%; color:inherit; text-decoration:none; }
.news-card-link:hover h2 { color:var(--accent); }
.news-card-link:focus-visible { outline-offset:-4px; }
.news-card-media { aspect-ratio:16/9; display:grid; place-items:center; background:linear-gradient(135deg,#233449,#141b27); color:#90a6bc; font-weight:800; letter-spacing:.1em; overflow:hidden; }
.news-card-media img { width:100%; height:100%; object-fit:cover; }
.news-card-body { padding:18px; }
.news-card time { color:var(--muted); font-size:13px; }
.news-card h2 { font-size:19px; line-height:1.35; margin:10px 0; overflow-wrap:anywhere; }
.news-card p { color:var(--muted); font-size:14px; line-height:1.6; margin:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin:22px 0; }
.news-button { display:inline-block; border:1px solid #5b8ab9; border-radius:9px; padding:10px 18px; background:#245582; color:#fff; text-decoration:none; font:inherit; cursor:pointer; }
.news-button:hover { background:#306da5; color:#fff; }
.news-button:disabled { opacity:.5; cursor:wait; }
.news-status { color:var(--muted); font-size:13px; }
.article-wrap { width:min(850px,calc(100% - 32px)); margin:34px auto 70px; padding:clamp(22px,4vw,42px); background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.article-wrap h1 { margin:0 0 20px; }
.article-hero { display:block; max-width:100%; width:100%; max-height:470px; object-fit:cover; margin:22px 0 30px; border-radius:10px; }
.article-prose { line-height:1.85; font-size:16px; overflow-wrap:anywhere; }
.article-prose p { margin:0 0 19px; }
.article-prose h2 { border-top:1px solid var(--border); padding-top:20px; }
.article-prose img { max-width:100%; height:auto; }
.article-prose a { overflow-wrap:anywhere; }
.news-return { margin-top:32px; }
@media (max-width:950px) { .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:580px) { .news-shell { width:calc(100% - 24px); margin:25px auto 55px; } .news-grid { grid-template-columns:1fr; gap:14px; } .news-card-media { aspect-ratio:16/8; } .article-wrap { width:calc(100% - 20px); padding:20px 16px; } }

/* Center the home page headline only. */
.home-page .news-head { justify-content: center; text-align: center; }
.home-page .news-head h1 { margin-left: auto; margin-right: auto; }
/* Advertising zones stay unobtrusive until an actual provider tag is added. */
.ad-slot:empty { display: none; }
.ad-slot:not(:empty) { display: grid; justify-items: center; align-items: center; width: 100%; margin: 28px auto; min-height: 90px; }
@media (max-width:600px) { .ad-slot:not(:empty) { overflow: hidden; max-width: 100%; } }

/* Manual in-feed ads: wider desktop row after each six news cards; mobile stays as before. */
.news-feed-ad {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 0;
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
}
.news-feed-ad > .adsbygoogle {
  width: 100%;
  max-width: 100%;
}
.news-feed-ad:has(> .adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Preserve the previous feed-ad width on phones. */
@media (max-width: 600px) {
  .news-feed-ad { max-width: 468px; }
}
