.nw {
    --nw-panel: rgba(4, 12, 22, .88);
    --nw-panel2: rgba(8, 20, 32, .74);
    --nw-line: rgba(0, 173, 238, .16);
    --nw-line2: rgba(0, 173, 238, .34);
    --nw-cyan: #00adee;
    --nw-text: #dbe7ef;
    --nw-hi: #eaf6ff;
    --nw-muted: #7f9aab;
    --nw-news: 74, 222, 128;
    --nw-update: 245, 158, 11;
    --nw-alert: 248, 113, 113;
    --acc: 0, 173, 238;
    position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1;
    color: var(--nw-text); font-family: var(--f-body, inherit);
}
.nw .is-news { --acc: var(--nw-news); }
.nw .is-update { --acc: var(--nw-update); }
.nw .is-alert { --acc: var(--nw-alert); }
.nw a { color: inherit; }

/* a globális címdíszítés (középre zárt, két oldalt vonallal) itt nem kell */
.nw :is(h1, h2, h3)::before, .nw :is(h1, h2, h3)::after { content: none !important; display: none !important; }
.nw :is(h1, h2, h3) { display: block !important; text-align: left !important; }

.nw-hero {
    position: relative; overflow: hidden; border-bottom: 1px solid var(--nw-line2); border-radius: 0 0 16px 16px;
    background:
        radial-gradient(ellipse 60% 120% at 85% 0%, rgba(var(--c-cyan-rgb, 0, 173, 238), .22), transparent 60%),
        radial-gradient(ellipse 40% 90% at 10% 100%, rgba(139, 92, 246, .14), transparent 60%),
        linear-gradient(180deg, rgba(6, 16, 26, .92), rgba(4, 10, 18, .96));
}
.nw-hero-in::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(var(--c-cyan-rgb, 0, 173, 238), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--c-cyan-rgb, 0, 173, 238), .06) 1px, transparent 1px);
    background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.nw-hero-in > * { position: relative; }
.nw-hero.is-compact .nw-hero-in { padding-top: 18px; padding-bottom: 16px; }
.nw-hero.is-compact h1 { font-size: clamp(1.1rem, 2.4vw, 1.5rem) !important; margin: 4px 0 0 !important; }
.nw-hero.is-compact :is(p, .nw-hero-stats) { display: none; }
.nw-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--nw-cyan), transparent); }
.nw-hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 34px 24px 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nw-kicker { font-family: var(--f-display, sans-serif); font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--nw-cyan); }
.nw-hero h1 {
    margin: 6px 0 4px !important; padding: 0 !important; border: 0 !important; text-align: left !important; width: auto !important;
    font-family: var(--f-display, sans-serif); font-weight: 900; font-size: clamp(1.5rem, 3.6vw, 2.4rem) !important;
    letter-spacing: 3px; text-transform: uppercase; color: #b0e0ff !important; text-shadow: 0 0 20px rgba(var(--c-cyan-rgb, 0, 173, 238), .45) !important;
}
.nw-hero p { margin: 0; color: var(--nw-muted); text-align: left; text-shadow: none; }
.nw-hero-stats { display: flex; gap: 10px; margin: 0; }
.nw-hero-stats > div { padding: 10px 16px; border-radius: 12px; background: rgba(4, 12, 22, .7); border: 1px solid var(--nw-line2); min-width: 120px; }
.nw-hero-stats dt { font-size: .82rem; color: var(--nw-muted); }
.nw-hero-stats dd { margin: 0; font-family: var(--f-display, sans-serif); font-size: 1rem; color: var(--nw-hi); }

.nw-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 24px 60px; }

.nw-flash { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid; font-weight: 600; }
.nw-flash.is-ok { color: #86efac; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.nw-flash.is-err { color: #fca5a5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }

.nw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.nw-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: var(--nw-panel); border: 1px solid var(--nw-line2); transition: border-color .2s, box-shadow .2s; }
.nw-search:focus-within { border-color: var(--nw-cyan); box-shadow: 0 0 0 3px rgba(var(--c-cyan-rgb, 0, 173, 238), .15); }
.nw-search svg { width: 18px; height: 18px; fill: none; stroke: var(--nw-muted); stroke-width: 2; flex: none; }
.nw-search input { flex: 1; min-width: 0; padding: 8px 0; background: none; border: 0; outline: none; color: var(--nw-hi); font: inherit; font-size: 16px; }
.nw-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nw-chip { padding: 7px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--nw-line); background: var(--nw-panel); color: var(--nw-muted); font: inherit; font-size: 15px; transition: all .15s; }
.nw-chip:hover { color: var(--nw-hi); border-color: rgba(var(--acc), .5); }
.nw-chip[aria-pressed="true"] { color: var(--nw-hi); background: rgba(var(--acc), .16); border-color: rgba(var(--acc), .6); }
.nw-admin-btns { display: flex; gap: 8px; margin-left: auto; }

.nw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px;
    border-radius: 10px; border: 1px solid var(--nw-line2); background: rgba(var(--c-cyan-rgb, 0, 173, 238), .12); color: var(--nw-hi);
    font-family: var(--f-display, sans-serif); font-size: .66rem; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.nw-btn:hover { background: rgba(var(--c-cyan-rgb, 0, 173, 238), .24); border-color: var(--nw-cyan); }
.nw-btn.is-primary { background: linear-gradient(135deg, rgba(var(--c-cyan-rgb, 0, 173, 238), .5), rgba(0, 120, 180, .5)); border-color: var(--nw-cyan); box-shadow: 0 0 14px rgba(var(--c-cyan-rgb, 0, 173, 238), .25); }
.nw-btn.is-ghost { background: transparent; border-color: rgba(122, 154, 170, .3); color: var(--nw-text); }
.nw-btn.is-danger { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); color: #fecaca; }
.nw-btn:focus-visible, .nw-chip:focus-visible, .nw-card:focus-visible, .nw a:focus-visible { outline: 2px solid var(--nw-cyan); outline-offset: 2px; }

.nw-editor { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; padding: 16px; border-radius: 12px; background: var(--nw-panel); border: 1px solid var(--nw-line2); }
.nw-editor[hidden] { display: none; }
.nw-editor label { font-size: .92rem; color: var(--nw-muted); }
.nw-editor input, .nw-editor select, .nw-editor textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid var(--nw-line2);
    color: var(--nw-hi); font: inherit; font-size: 15px;
}
.nw-editor textarea[name="news_json"] { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.nw-editor :is(input, select, textarea):focus { outline: none; border-color: var(--nw-cyan); }
.nw-form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nw-json-hint { font-size: .9rem; color: var(--nw-muted); }
.nw-json-hint.is-err { color: #fca5a5; }
.nw-json-hint.is-ok { color: #86efac; }

.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .92rem; color: var(--nw-muted); }
.nw-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-family: var(--f-display, sans-serif); font-size: .58rem; letter-spacing: 1px; text-transform: uppercase;
    color: rgb(var(--acc)); background: rgba(var(--acc), .12); border: 1px solid rgba(var(--acc), .4);
}
.nw-badge.is-latest { --acc: 0, 173, 238; }
.nw-badge.is-new { --acc: 0, 173, 238; animation: nw-pulse 2.4s ease-in-out infinite; }
@keyframes nw-pulse { 50% { box-shadow: 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), .55); } }

.nw-featured {
    position: relative; margin-bottom: 30px; padding: 26px 28px; border-radius: 16px;
    background: linear-gradient(120deg, rgba(var(--acc), .1), var(--nw-panel) 45%);
    border: 1px solid rgba(var(--acc), .35); box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(var(--acc), .08);
}
.nw-featured::before { content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--acc)), transparent); }
.nw-feat-title { margin: 12px 0 10px !important; padding: 0 !important; border: 0 !important; width: auto !important; text-align: left !important; text-shadow: none !important; font-size: clamp(1.15rem, 2.4vw, 1.6rem) !important; line-height: 1.3 !important; letter-spacing: 1px; }
.nw-feat-title a { color: var(--nw-hi); text-decoration: none; }
.nw-feat-title a:hover { color: var(--nw-cyan); }
.nw-feat-lead { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.7; color: var(--nw-text); text-align: left; text-shadow: none; }

.nw-heads { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.nw-heads a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 12px 14px; border-radius: 10px; text-decoration: none; background: var(--nw-panel2); border: 1px solid var(--nw-line); transition: border-color .15s, background .15s, transform .15s; }
.nw-heads a:hover { border-color: var(--nw-line2); background: rgba(var(--c-cyan-rgb, 0, 173, 238), .06); transform: translateY(-1px); }
.nw-heads li.is-hot a { border-color: rgba(248, 113, 113, .4); }
.nw-heads b { display: block; color: var(--nw-hi); font-size: 1rem; line-height: 1.35; }
.nw-heads small { display: block; margin-top: 3px; color: var(--nw-muted); font-size: .9rem; line-height: 1.5; }
.nw-num {
    flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-display, sans-serif); font-size: .72rem; color: var(--nw-cyan); background: rgba(var(--c-cyan-rgb, 0, 173, 238), .12); border: 1px solid var(--nw-line2);
}
.is-hot .nw-num { color: #fca5a5; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .45); }

.nw-sec-label {
    margin: 0 0 14px !important; padding: 0 0 0 12px !important; border: 0 !important; border-left: 3px solid var(--nw-cyan) !important; width: auto !important;
    font-family: var(--f-display, sans-serif); font-size: .8rem !important; line-height: 1.2 !important; letter-spacing: 2px !important; text-transform: uppercase; color: #b0e0ff !important; text-shadow: none !important;
}

.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.nw-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 14px; text-decoration: none;
    background: var(--nw-panel); border: 1px solid var(--nw-line); border-top: 2px solid rgba(var(--acc), .6);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .4); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.nw-card:hover { transform: translateY(-3px); border-color: rgba(var(--acc), .5); box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 18px rgba(var(--acc), .1); }
.nw-card h3 { margin: 0 !important; padding: 0 !important; border: 0 !important; text-align: left !important; text-shadow: none !important; font-size: 1.05rem !important; line-height: 1.4 !important; color: var(--nw-hi) !important; letter-spacing: .5px; }
.nw-card p { margin: 0; color: var(--nw-muted); line-height: 1.6; text-align: left; text-shadow: none; }
.nw-card-heads { margin: 0; padding: 0 0 0 18px; color: var(--nw-text); font-size: .95rem; line-height: 1.55; }
.nw-card-heads li::marker { color: rgb(var(--acc)); }
.nw-more { color: var(--nw-muted); font-size: .88rem; }
.nw-card-go { margin-top: auto; padding-top: 6px; color: var(--nw-cyan); font-size: .92rem; font-weight: 600; }

.nw-empty { text-align: center; padding: 40px 16px; color: var(--nw-muted); }
.nw-empty[hidden], .nw-item[hidden] { display: none; }
.nw-pages { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.nw-pages a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; background: var(--nw-panel); border: 1px solid var(--nw-line); color: var(--nw-muted); }
.nw-pages a:hover, .nw-pages a.is-on { color: var(--nw-cyan); border-color: var(--nw-line2); background: rgba(var(--c-cyan-rgb, 0, 173, 238), .1); }

/* ---------- részletes oldal ---------- */
.nw-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; font-size: .92rem; color: var(--nw-muted); }
.nw-crumbs a { color: var(--nw-cyan); text-decoration: none; }
.nw-crumbs a:hover { text-decoration: underline; }
.nw-crumbs span:last-child { color: var(--nw-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

.nw-article { max-width: 820px; margin: 0 auto; padding: 30px 34px; border-radius: 18px; background: var(--nw-panel); border: 1px solid var(--nw-line2); box-shadow: 0 16px 50px rgba(0, 0, 0, .55); }
.nw-art-head { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--nw-line); }
.nw-art-title { margin: 12px 0 12px !important; padding: 0 !important; border: 0 !important; width: auto !important; text-align: left !important; text-shadow: none !important; font-size: clamp(1.3rem, 3vw, 1.9rem) !important; line-height: 1.3 !important; color: var(--nw-hi) !important; letter-spacing: 1px; }
.nw-lead p { margin: 0 0 .8em; font-size: 1.12rem; line-height: 1.75; color: var(--nw-text); text-align: left; text-shadow: none; }

.nw-tldr, .nw-toc, .nw-outlook { margin: 0 0 24px; padding: 16px 20px; border-radius: 12px; background: var(--nw-panel2); border: 1px solid var(--nw-line); }
.nw-tldr { border-left: 3px solid var(--nw-cyan); }
.nw-outlook { border-left: 3px solid #a78bfa; margin-top: 28px; }
.nw-tldr h2, .nw-toc h2, .nw-outlook h2 {
    margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; width: auto !important; text-align: left !important; text-shadow: none !important;
    font-family: var(--f-display, sans-serif); font-size: .74rem !important; letter-spacing: 1.8px !important; text-transform: uppercase; color: #b0e0ff !important;
}
.nw-tldr ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.nw-tldr li::marker { color: var(--nw-cyan); }
.nw-toc ol { margin: 0; padding-left: 22px; line-height: 1.9; columns: 2 260px; }
.nw-toc a { color: var(--nw-cyan); text-decoration: none; }
.nw-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-outlook p { margin: 0 0 .6em; line-height: 1.7; text-align: left; text-shadow: none; }

.nw-sections { display: flex; flex-direction: column; gap: 26px; }
.nw-sec { scroll-margin-top: 90px; padding-left: 18px; border-left: 2px solid var(--nw-line2); }
.nw-sec.is-hot { border-left-color: rgba(248, 113, 113, .7); }
.nw-sec:target { animation: nw-hl 1.8s ease-out; }
@keyframes nw-hl { from { background: rgba(var(--c-cyan-rgb, 0, 173, 238), .14); } }
.nw-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nw-sec-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.nw-tag { padding: 2px 9px; border-radius: 6px; font-size: .78rem; font-weight: 600; color: var(--nw-cyan); background: rgba(var(--c-cyan-rgb, 0, 173, 238), .1); border: 1px solid var(--nw-line2); }
.nw-tag.is-hot { color: #fca5a5; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .45); }
.nw-sec-title { margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; width: auto !important; text-align: left !important; text-shadow: none !important; font-size: 1.18rem !important; line-height: 1.4 !important; color: var(--nw-hi) !important; letter-spacing: .5px; }
.nw-sec-sum { margin: 0 0 10px; font-weight: 600; color: #cfe6f3; line-height: 1.65; text-align: left; text-shadow: none; }
.nw-sec-body p, .nw-text p { margin: 0 0 .85em; line-height: 1.8; color: var(--nw-text); text-align: left; text-shadow: none; }
.nw-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: .9rem; color: var(--nw-muted); }
.nw-sources a { color: var(--nw-cyan); text-decoration: none; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--nw-line); }
.nw-sources a:hover { background: rgba(var(--c-cyan-rgb, 0, 173, 238), .1); }

.nw-art-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--nw-line); }
.nw-art-foot form { margin: 0; }
.nw-article .nw-editor { margin-top: 18px; }
.nw-pager-pn { max-width: 820px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nw-pn { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-radius: 12px; text-decoration: none; background: var(--nw-panel); border: 1px solid var(--nw-line); transition: border-color .15s; }
.nw-pn:hover { border-color: var(--nw-line2); }
.nw-pn small { color: var(--nw-cyan); font-size: .85rem; }
.nw-pn span { color: var(--nw-hi); line-height: 1.4; }
.nw-pn.is-next { text-align: right; grid-column: 2; }

.nw-dlg {
    --nw-line2: rgba(0, 173, 238, .34); --nw-hi: #eaf6ff; --nw-text: #dbe7ef; --nw-cyan: #00adee;
    display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; padding: 22px; color: var(--nw-text);
}
.nw-dlg p { margin: 0; text-align: left; text-shadow: none; }
.nw-dlg .nw-form-row { justify-content: flex-end; }

@media (max-width: 700px) {
    .nw-hero-in { padding: 24px 16px 22px; }
    .nw-wrap { padding: 16px 12px 50px; }
    .nw-featured { padding: 18px 16px; }
    .nw-heads { grid-template-columns: 1fr; }
    .nw-grid { grid-template-columns: 1fr; }
    .nw-article { padding: 20px 16px; border-radius: 14px; }
    .nw-sec { padding-left: 12px; }
    .nw-admin-btns { margin-left: 0; }
    .nw-pager-pn { grid-template-columns: 1fr; }
    .nw-pn.is-next { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .nw-card, .nw-heads a { transition: none; }
    .nw-badge.is-new, .nw-sec:target { animation: none; }
}
