/* Kaj je novega v ORTI (templates/help/news.php, public/js/news.js) */
.nw { max-width: 1080px; display: grid; gap: 28px; padding-bottom: 40px; }

/* uvod */
.nw-hero { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.nw-hero__ic { flex: none; }
.nw-hero__ic img { display: block; width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-2); }
.nw-ver { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-full); background: var(--brand-soft); color: var(--brand); font: 600 12.5px/1.4 var(--font-mono, ui-monospace, monospace); letter-spacing: .02em; }
.nw-hero h1 { margin-top: 8px; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.nw-lead { margin-top: 8px; max-width: 62ch; color: var(--muted); font-size: 16.5px; text-wrap: pretty; }

/* nastavitev obvestil */
.nw-setup { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface) 70%); }
.nw-setup .card__body { padding: 22px; }
.nw-setup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.nw-setup__head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.01em; }
.nw-setup__head h2 .ico { color: var(--brand); }
.nw-setup__head p { margin-top: 6px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.nw-progress { flex: none; align-self: center; padding: 4px 12px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.nw-progress.is-done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.nw-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: nw; }
.nw-step { counter-increment: nw; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-content: start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.nw-step__n { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; }
.nw-step__n::before { content: counter(nw); }
.nw-step__n .ico { display: none; width: 18px; height: 18px; }
.nw-step.is-done .nw-step__n { background: var(--ok); }
.nw-step.is-done .nw-step__n::before { content: none; }
.nw-step.is-done .nw-step__n .ico { display: block; }
.nw-step__body b { display: block; font-size: 16px; margin-top: 5px; }
.nw-step__body p { margin-top: 4px; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.nw-step__state { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.nw-step__state:empty { display: none; }
.nw-step.is-done .nw-step__state { color: var(--ok); }
.nw-step__state.is-warn { color: var(--warn, #b45309); }
.nw-step__act { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.nw-step__act:not(:has(> :not([hidden]))) { display: none; }
.nw-step__act .btn--ghost { padding-inline: 8px; margin-left: -8px; }
.nw-login { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.nw-login p { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
    .nw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nw-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nw-step { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
    .nw-step__n { grid-row: auto; }
    .nw-step__act { grid-column: 1; align-self: end; }
}

/* kazalo */
.nw-toc { position: sticky; top: var(--topbar-h); z-index: 8; margin: -10px -16px 0; padding: 10px 16px; background: var(--bg); }
.nw-toc .chip { display: inline-flex; align-items: center; gap: 6px; flex: none; text-decoration: none; }
.nw-toc .chip .ico { width: 16px; height: 16px; }
.nw-toc .chip[aria-current] { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, transparent); color: var(--brand); }

/* razdelki */
.nw-sec { display: grid; gap: 14px; scroll-margin-top: calc(var(--topbar-h) + 64px); }
.nw-sec__head { display: flex; align-items: center; gap: 12px; }
.nw-sec__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.nw-sec__head h2 { font-size: 21px; letter-spacing: -0.01em; }
.nw-sec__head p { margin-top: 2px; color: var(--muted); font-size: 14.5px; text-wrap: pretty; }
.nw-sec__head .badge { margin-left: auto; flex: none; }
.nw-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.nw-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.nw-item__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2, var(--text)); }
.nw-item__ic .ico { width: 20px; height: 20px; }
.nw-item__body { display: flex; flex-direction: column; min-width: 0; }
.nw-item h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 15.5px; line-height: 1.3; margin-top: 2px; }
.nw-item p { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.nw-item p.nw-item__where { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--text-2, var(--text)); font-size: 13px; font-weight: 550; line-height: 1.4; }
.nw-item__where .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--brand); }
.nw-tag { display: inline-block; padding: 1px 8px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.nw-tag--new { background: var(--brand-soft); color: var(--brand); }
.nw-tag--better { background: var(--info-soft, var(--surface-2)); color: var(--info, var(--text-2)); }
.nw-item__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: none; }
.nw-item__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-item__link .ico { width: 16px; height: 16px; transition: transform var(--t-fast, .15s) var(--ease, ease); }
.nw-item__link:hover .ico { transform: translateX(2px); }

/* skrbniki */
.nw-sec--admin { padding: 20px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.nw-sec--admin .nw-sec__ic { background: var(--text); color: var(--surface); }

/* zaključek: poziv za Pomoč in podporo */
.nw-end { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.nw-end .card__body { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 20px 22px; }
.nw-end__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.nw-end__ic .ico { width: 24px; height: 24px; }
.nw-end__txt { flex: 1 1 320px; min-width: 0; }
.nw-end h2 { font-size: 18px; }
.nw-end p { margin-top: 4px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.nw-end__act { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .nw-end__act, .nw-end__act .btn { width: 100%; justify-content: center; } }

@media (max-width: 560px) {
    .nw { gap: 22px; }
    .nw-hero { align-items: flex-start; gap: 14px; }
    .nw-hero__ic img { width: 56px; height: 56px; border-radius: 14px; }
    .nw-setup .card__body { padding: 16px; }
    .nw-sec--admin { padding: 14px; margin-inline: -4px; }
    .nw-sec__head .badge { display: none; }
    .nw-item { padding: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .nw-item__link .ico { transition: none; } }
