/* Secure Borders – news archive and article page (/hirek/), also used by the /admin/ preview. */

/* ---------- Page shell ---------- */
.np { background: var(--c-bg); min-height: 100vh; display: flex; flex-direction: column; }
.np__top { position: sticky; top: 0; z-index: 30; background: rgba(10, 22, 40, .95); border-bottom: 1px solid var(--c-line); backdrop-filter: blur(8px); }
.np__topin { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.np__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); }
.np__brand img { height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.np__brand strong { display: block; font-size: 1rem; }
.np__brand span { display: block; font-size: .72rem; color: var(--c-muted); }
.np__side { display: flex; align-items: center; gap: 10px; }
.np__main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 32px 16px 64px; }
.np__crumbs { font-size: .78rem; color: var(--c-dim); margin-bottom: 16px; }
.np__crumbs a { color: var(--c-muted); text-decoration: none; }
.np__crumbs a:hover { color: var(--c-accent); }
.np__foot { border-top: 1px solid var(--c-line); background: #071120; }
.np__footin { max-width: 1200px; margin: 0 auto; padding: 24px 16px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.np__footin img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.np__footin p { font-size: .72rem; color: var(--c-dim); line-height: 1.6; flex: 1; min-width: 260px; }

/* ---------- Archive ---------- */
.np__head { margin-bottom: 24px; }
.np__filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.np__filter { font-size: .8rem; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--c-line-2); color: var(--c-muted); }
.np__filter:hover { color: var(--c-text); }
.np__filter.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #10203a; font-weight: 700; }
.np__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.np__empty { color: var(--c-muted); padding: 40px 0; }

/* Home grid: cards for editor-written articles link their photo and title */
a.news__media { display: block; }
.news__title a { color: inherit; text-decoration: none; }
.news__title a:hover { color: var(--c-accent); }

/* Card link wrapper used on the archive and the home news grid */
a.news { text-decoration: none; color: inherit; }
.news--link .news__title { transition: color .2s; }
.news--link:hover .news__title { color: var(--c-accent); }
.news__video { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 16, 30, .8); color: #fff; }
.news__video .ico { width: 14px; height: 14px; }

/* ---------- Article ---------- */
.art { max-width: 820px; margin: 0 auto; color: var(--c-text); }
.art__cover { margin: 0 0 20px; border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg-3); }
.art__cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.art__cover figcaption, .art__fig figcaption, .art__gallery figcaption {
  font-size: .78rem; color: var(--c-dim); padding: 8px 12px; line-height: 1.5;
}
.art__meta { font-size: .8rem; color: var(--c-dim); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.art__cat { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: var(--r-sm); background: var(--c-accent); color: #10203a; }
.art__title { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.art__lead { font-size: 1.1rem; line-height: 1.6; color: var(--c-muted); font-weight: 500; margin-bottom: 22px; border-left: 3px solid var(--c-accent); padding-left: 14px; }
.art__body { font-size: 1rem; line-height: 1.75; color: #d5e2ef; }
.art__body p { margin-bottom: 1em; }
.art__body .art__h { font-size: 1.3rem; font-weight: 800; color: var(--c-text); margin: 1.4em 0 .5em; line-height: 1.3; }
.art__body h3.art__h { font-size: 1.1rem; }
.art__body ul, .art__body ol { margin: 0 0 1em 1.3em; display: grid; gap: .35em; }
.art__body ul { list-style: disc; }
.art__body ol { list-style: decimal; }
.art__body blockquote { margin: 1.2em 0; padding: .6em 1em; border-left: 3px solid var(--c-tech); background: var(--c-surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--c-muted); font-style: italic; }
.art__body a, .art__source a { color: var(--c-accent); }
.art__body strong { color: var(--c-text); }
.art__fig { margin: 1.4em 0; border-radius: var(--r-md); overflow: hidden; background: var(--c-bg-3); }
.art__fig img { width: 100%; display: block; }
.art__video { margin: 1.6em 0; border-radius: var(--r-md); overflow: hidden; background: #000; }
.art__video video { width: 100%; display: block; max-height: 520px; }
.art__video--embed { position: relative; aspect-ratio: 16 / 9; }
.art__video--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 1.6em 0; }
.art__gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--c-bg-3); }
.art__gallery button { display: block; width: 100%; padding: 0; }
.art__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s; }
.art__gallery button:hover img { transform: scale(1.04); }
.art__source { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: .88rem; color: var(--c-muted); }
.art__back { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.art__share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* Simple image viewer for the article gallery */
.np-lb { position: fixed; inset: 0; z-index: 100; background: rgba(4, 10, 20, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.np-lb[hidden] { display: none; }
.np-lb img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: var(--r-md); }
.np-lb figure { margin: 0; text-align: center; }
.np-lb figcaption { color: var(--c-muted); font-size: .85rem; margin-top: 10px; }
.np-lb__btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.np-lb__btn:hover { background: rgba(255, 255, 255, .2); }
.np-lb__close { top: 16px; right: 16px; }
.np-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.np-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1080px) { .np__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .np__grid { grid-template-columns: 1fr; }
  .np__brand img { height: 32px; }
  .np__main { padding-top: 20px; }
  .art__lead { font-size: 1rem; }
}
