/* ==========================================================================
   ==== Task 6: content views — Pregled, Pravila, Radionica, Izvori ====
   Shared page parts (page head, section head, disclosure, search, toc),
   then each view. Flat, ruled, editorial: red only for what matters,
   no side stripes, no nested cards. Mobile mode < 820px; the docs layout
   (side toc) from 1024px; the horizontal process flow from 1080px.
   ========================================================================== */

/* ── Page + heads ──────────────────────────────────────────────────────── */
.nz-page {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nz-pagehead {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: var(--s-6);
}
.nz-pagehead > * {
  margin: 0;
}
.nz-pagehead__lead {
  margin-top: 2px;
}
.nz-pagehead__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 32px;
  margin-top: 10px;
}
.nz-pagehead__tools .nz-search {
  flex: 1 1 380px;
  max-width: 600px;
}

/* Search field (shares .nz-pvsearch from preview.css) */
.nz-search {
  min-width: min(100%, 260px);
}
.nz-search .nz-pvsearch__input {
  height: 40px;
  font-size: 15px;
}
.nz-search__count:empty {
  display: none;
}

/* Section head: mono index + kicker, display title, lead, optional aside */
.nz-shead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 28px;
  margin: 0 0 var(--s-5);
}
.nz-shead > * {
  margin: 0;
}
.nz-shead__kicker {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-shead__index {
  color: var(--red-text);
  font-variant-numeric: tabular-nums;
}
.nz-shead__title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.nz-shead__lead {
  grid-column: 1;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--paper-dim);
  text-wrap: pretty;
}
.nz-shead__aside {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: end;
  justify-self: end;
}

/* Disclosure: "Pojedinosti", "Puni tekst", "Zašto je otvoreno" */
.nz-more {
  margin-top: 8px;
}
.nz-more > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--dur-hover) ease;
}
.nz-more > summary::-webkit-details-marker {
  display: none;
}
.nz-more > summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1;
}
.nz-more[open] > summary::before {
  content: '−';
}
.nz-more > summary:hover {
  color: var(--red-text);
}
.nz-more__body {
  max-width: 70ch;
  margin: 6px 0 2px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-dim);
}

/* Footnote mark */
.nz-fnmark {
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: 0.5em;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
  color: var(--red-text);
}
.nz-fnmark a {
  color: inherit;
  text-decoration: none;
}

/* ── Table of contents: side nav (≥ 1024px) / chip-scroller ───────────── */
.nz-docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}
.nz-docs__main {
  min-width: 0;
}

.nz-toc {
  position: sticky;
  z-index: 30;
  top: 50px; /* under the sticky desktop nav */
  margin-inline: calc(-1 * var(--gutter));
  padding: 8px var(--gutter);
  border-block: 1px solid var(--rule);
  background: var(--ink);
}
.nz-toc__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nz-toc__scroller {
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.nz-toc__scroller::-webkit-scrollbar {
  display: none;
}
.nz-toc__list {
  display: flex;
  gap: 6px;
  width: max-content;
  margin: 0;
  padding: 2px 0;
  list-style: none;
}
.nz-toc__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-pill);
  color: var(--paper-dim);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-chip) ease, border-color var(--dur-chip) ease, color var(--dur-chip) ease;
}
.nz-toc__link:hover {
  border-color: var(--paper-dim);
  color: var(--paper);
}
.nz-toc__n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.nz-toc__count:empty {
  display: none;
}
.nz-toc__count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--hue-amber);
  color: var(--on-hue);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}
.nz-toc__link[aria-current] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.nz-toc__link[aria-current] .nz-toc__n {
  color: var(--ink);
}
.nz-toc__item.is-empty .nz-toc__link {
  opacity: 0.45;
}

@media (max-width: 819.98px) {
  .nz-toc {
    top: 0;
    padding-block: 4px; /* + the list's 6px = the same 54px bar */
  }
  /* The scroller clips overflow, so the 44px hit area must fit inside it:
     34px chip + 6px list padding above and below = 46px. */
  .nz-toc__list {
    padding-block: 6px;
  }
  .nz-toc__link::after {
    content: '';
    position: absolute;
    inset: -6px -2px;
  }
}

@media (min-width: 1024px) {
  .nz-docs {
    grid-template-columns: 228px minmax(0, 1fr);
    align-items: start;
    gap: 56px;
  }
  .nz-toc {
    top: 74px;
    max-height: calc(100vh - 98px);
    margin: 0 0 0 -14px;
    padding: 0 0 0 14px;
    overflow-y: auto;
    border: 0;
    background: transparent;
    scrollbar-width: thin;
  }
  .nz-toc__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    padding-bottom: 10px;
    margin: 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .nz-toc__scroller {
    overflow: visible;
  }
  .nz-toc__list {
    display: block;
    width: auto;
    padding: 6px 0 0;
  }
  .nz-toc__link {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 6px;
    width: 100%;
    min-height: 0;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
  }
  .nz-toc__link:hover {
    color: var(--red-text);
  }
  .nz-toc__link[aria-current] {
    background: transparent;
    color: var(--paper);
    font-weight: 700;
  }
  .nz-toc__link[aria-current] .nz-toc__n {
    color: var(--red-text);
  }
  .nz-toc__link[aria-current]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    transform: translateY(-50%);
  }
}

/* ── Status badges in running text ────────────────────────────────────── */
.nz-page .nz-badge--pending {
  border-color: var(--hue-amber);
  color: var(--paper);
}

/* ==========================================================================
   PREGLED
   ========================================================================== */

/* Status strip */
.nz-status {
  margin: -16px 0 0;
  border-bottom: 1px solid var(--rule);
}
.nz-status__asof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.nz-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue-green);
}
.nz-status__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.nz-status__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 14px 20px 14px;
  border-left: 1px solid var(--rule);
}
.nz-status__item:first-child {
  padding-left: 0;
  border-left: 0;
}
.nz-status__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-status__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--paper);
}
.nz-status__value strong {
  font-weight: 700;
}
.nz-status__lshort,
.nz-status__ashort {
  display: none;
}
/* "¹" — a footnote toggle with a 44px hit area */
.nz-status__fnbtn {
  position: relative;
  align-self: flex-start;
  margin-left: -6px;
  padding: 0 3px;
  border: 0;
  background: none;
  font-size: 12px;
  line-height: 1;
  vertical-align: 0;
  cursor: pointer;
}
.nz-status__fnbtn::after {
  content: '';
  position: absolute;
  inset: -14px -12px;
}
.nz-status__fnbtn[aria-expanded='true'] {
  color: var(--paper);
}
.nz-status__after {
  color: var(--paper-dim);
}
.nz-status__fn {
  margin: 0;
  padding: 10px 0 12px;
  border-top: 1px dashed var(--rule);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.nz-status__fn span:focus {
  outline: none;
  background: var(--red-soft);
}

/* Hero */
/* Sized so both CTAs sit on the first screen at 360×740 and 1280×800. */
.nz-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3.2vw, 40px) 0 clamp(36px, 5vw, 56px);
}
.nz-hero > * {
  margin: 0;
}
.nz-hero__title {
  max-width: 27ch;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-wrap: balance;
}
.nz-hero__lead {
  max-width: 62ch;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--paper-dim);
  text-wrap: pretty;
}
.nz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.nz-hero__cta {
  padding-inline: 22px;
  font-size: 14px;
}

.nz-psec {
  scroll-margin-top: 72px;
}
.nz-pregled .nz-section {
  padding-block: var(--s-6) var(--s-7);
}

/* Key-number tiles */
.nz-keytiles {
  --tile-min: 250px;
}
.nz-keytile {
  gap: 7px;
}
.nz-keytile .nz-tile__value {
  font-size: clamp(27px, 2.45vw, 33px);
}
.nz-keytile .nz-tile__note {
  font-size: 13.5px;
}
.nz-keytile__fn {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim);
}
.nz-keytile .nz-tile__foot {
  padding-top: 6px;
}
.nz-keytiles__more {
  display: none;
  width: 100%;
  margin-top: 4px;
  border-top: 0;
}
@media (max-width: 819.98px) {
  .nz-keytiles.is-collapsed .is-extra {
    display: none;
  }
  .nz-keytiles__more {
    display: flex;
  }
}

/* Razvoj vs Proizvodnja */
.nz-measures {
  gap: var(--s-4);
}
.nz-measure {
  gap: 14px;
  padding: 24px;
}
.nz-measure--razvoj {
  --card-hue: var(--cat-razvoj);
}
.nz-measure--proizvodnja {
  --card-hue: var(--cat-proizvodnja);
}
.nz-measure > * {
  margin: 0;
}
.nz-measure__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}
.nz-measure__name {
  font-size: clamp(28px, 2.8vw, 36px);
}
.nz-measure__amount {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}
.nz-measure__sub {
  font-size: 14.5px;
  color: var(--paper-dim);
}
.nz-measure__facts {
  --facts-key: 150px;
  margin-top: 4px;
}
.nz-measure__facts dd {
  font-size: 14.5px;
}
.nz-measure__v {
  margin-right: 2px;
}
.nz-measure__cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: var(--rule);
}

/* Kako se računa iznos */
.nz-eq {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
}
.nz-eq__row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
}
.nz-eq__row + .nz-eq__row {
  border-top: 1px solid var(--rule);
}
.nz-eq__step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-eq__stepn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--paper);
  letter-spacing: 0;
}
/* Four levies on the first line; "− raniji poticaji = raspoloživi iznos"
   on the second. Operators sit in the gutters (absolutely placed). */
.nz-eq__terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-eq__term {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.nz-eq__label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.nz-eq__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-dim);
}
.nz-eq__cites {
  margin-top: auto;
  padding-top: 6px;
}
.nz-eq__term.is-minus {
  grid-column: 1 / span 2;
  background: transparent;
  border-style: dashed;
}
.nz-eq__term.is-minus > .nz-eq__op {
  /* the first term of line 2: its operator hangs in the left margin */
  left: -28px;
  width: 22px;
}
.nz-eq__term.is-result {
  grid-column: 3 / span 2;
  border: 1.5px solid var(--red);
  background: linear-gradient(135deg, rgba(193, 72, 67, 0.2), rgba(193, 72, 67, 0.04));
  --text-dim: var(--paper-dim);
}
.nz-eq__term.is-result .nz-eq__label {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nz-eq__op {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dim);
}
.nz-eq__row:first-child {
  padding-left: 52px;
}
.nz-eq__row:first-child .nz-eq__step {
  margin-left: -28px;
}
.nz-eq__caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
  list-style: none;
}
.nz-eq__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--ink);
}
.nz-eq__capv {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.1vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.nz-eq__capl {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--paper-dim);
}
.nz-eq__min {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 12px;
  margin: 0;
  font-size: 14.5px;
  color: var(--paper-dim);
}
.nz-eq__min > i {
  color: var(--text-dim);
}
.nz-eq__cta {
  margin-left: auto;
}

@media (min-width: 820px) and (max-width: 1079.98px) {
  .nz-eq__terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nz-eq__term.is-levy:nth-child(3) > .nz-eq__op {
    left: -28px;
    width: 22px;
  }
  .nz-eq__term.is-minus {
    grid-column: 1;
  }
  .nz-eq__term.is-result {
    grid-column: 2;
  }
}
@media (max-width: 819.98px) {
  .nz-eq__row {
    padding: 18px 16px;
  }
  .nz-eq__row:first-child {
    padding-left: 16px;
  }
  .nz-eq__row:first-child .nz-eq__step {
    margin-left: 0;
  }
  .nz-eq__terms {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .nz-eq__term.is-minus,
  .nz-eq__term.is-result {
    grid-column: 1;
  }
  .nz-eq__op,
  .nz-eq__term.is-minus > .nz-eq__op {
    top: -30px;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 28px;
    font-size: 22px;
  }
  .nz-eq__min {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .nz-eq__cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }
}

/* Process flow */
.nz-flow {
  margin: 0;
}
.nz-flow__canvas {
  display: none;
}
.nz-flow__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.nz-flow__box {
  fill: var(--panel);
  stroke: var(--rule);
  stroke-width: 1.5;
  transition: stroke var(--dur-hover) ease, fill var(--dur-hover) ease;
}
.nz-flow__node {
  cursor: pointer;
  text-decoration: none;
}
.nz-flow__node text {
  text-decoration: none;
}
.nz-flow__node:hover .nz-flow__box {
  stroke: var(--paper-dim);
}
.nz-flow__node:hover .nz-flow__label,
.nz-flow__node:hover .nz-flow__blabel {
  fill: var(--red-text);
}
.nz-flow__node:focus {
  outline: none;
}
.nz-flow__node:focus-visible .nz-flow__box {
  stroke: var(--focus);
  stroke-width: 3;
}
.nz-flow__node--step.is-final .nz-flow__box {
  stroke: var(--hue-green);
  stroke-width: 2;
}
.nz-flow__ok {
  fill: var(--hue-green);
}
.nz-flow__node--branch .nz-flow__box {
  fill: var(--ink);
}
.nz-flow__node--branch.is-end .nz-flow__box {
  stroke: var(--red);
}
.nz-flow__node--branch.is-loop .nz-flow__box {
  stroke: var(--hue-amber);
  stroke-dasharray: 5 4;
}
/* SVG type is ≥ 11.5 units; the SVG is shown from 1180px, where it scales
   by ≥ 0.97, so every label stays ≥ 11px on screen. */
.nz-flow__n {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  fill: var(--text-dim);
}
.nz-flow__label {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  fill: var(--paper);
}
.nz-flow__sub {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  fill: var(--paper-dim);
}
.nz-flow__when {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-style: italic;
  fill: var(--text-dim);
}
.nz-flow__node--branch.is-end .nz-flow__when {
  fill: var(--red-text);
}
.nz-flow__blabel {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  fill: var(--paper);
}
.nz-flow__bsub {
  font-family: var(--font-body);
  font-size: 11.5px;
  fill: var(--text-dim);
}
.nz-flow__node--branch.is-fork .nz-flow__box {
  stroke: var(--paper-dim);
  stroke-dasharray: 2 3;
}
.nz-flow__edge {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.nz-flow__edge--loop {
  stroke: var(--hue-amber);
  stroke-dasharray: 5 4;
}
.nz-flow__edge--end {
  stroke: var(--red);
}
.nz-flow__arrow--main {
  fill: var(--muted);
}
.nz-flow__arrow--loop {
  fill: var(--hue-amber);
}
.nz-flow__arrow--end {
  fill: var(--red);
}
.nz-flow__elabel {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-style: italic;
  fill: var(--text-dim);
}

/* "Koraci s izvorima": the cited steps. A disclosure under the SVG on wide
   screens; on narrower ones JS keeps it open and the summary is hidden. */
.nz-flow__steps {
  margin-top: 14px;
}
.nz-flow__stepsum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-hover) ease;
}
.nz-flow__stepsum::-webkit-details-marker {
  display: none;
}
.nz-flow__stepsum:hover {
  border-color: var(--paper-dim);
}
.nz-flow__stepsum i {
  color: var(--text-dim);
}
.nz-flow__stephint {
  font-weight: 400;
  color: var(--text-dim);
}
.nz-flow__steps[open] > .nz-flow__stepsum {
  margin-bottom: 20px;
}
@media (max-width: 1179.98px) {
  .nz-flow__stepsum {
    display: none;
  }
  .nz-flow__steps {
    margin-top: 0;
  }
  .nz-flow__legend {
    display: none;
  }
  .nz-flow__caption {
    margin: 0 0 20px;
    padding-top: 0;
    border-top: 0;
  }
}

.nz-flow__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.nz-flow__cline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
}
.nz-flow__ctitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-flow__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--text-dim);
}
.nz-flow__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nz-flow__key::before {
  content: '';
  width: 22px;
  height: 0;
  border-top: 1.5px solid var(--muted);
}
.nz-flow__key--loop::before {
  border-top: 1.5px dashed var(--hue-amber);
}
.nz-flow__key--end::before {
  border-top-color: var(--red);
}
.nz-flow__key--fork::before {
  width: 14px;
  height: 10px;
  border: 1.5px dotted var(--paper-dim);
}
.nz-flow__key--ok::before {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--hue-green);
}

/* Vertical rendering (< 1080px): an ordered list with connectors */
.nz-flowlist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-flowlist__step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 16px;
  padding-bottom: 22px;
}
.nz-flowlist__step::before {
  content: '';
  position: absolute;
  top: 44px;
  bottom: 4px;
  left: 19.25px;
  width: 1.5px;
  background: var(--rule);
}
.nz-flowlist__step:last-child {
  padding-bottom: 0;
}
.nz-flowlist__step:last-child::before {
  display: none;
}
.nz-flowlist__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--rule);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.nz-flowlist__step.is-final .nz-flowlist__n {
  border-color: var(--hue-green);
}
.nz-flowlist__body {
  min-width: 0;
  padding-top: 7px;
}
.nz-flowlist__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
}
.nz-flowlist__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  text-decoration: none;
}
.nz-flowlist__title::after {
  content: ' →';
  font-family: var(--font-body);
  font-size: 0.75em;
  color: var(--text-dim);
}
.nz-flowlist__title:hover {
  color: var(--red-text);
}
.nz-flowlist__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.nz-flowlist__cites {
  display: flex;
  margin-top: 8px;
}
.nz-flowlist__branches {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.nz-flowlist__branch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px 36px;
  border: 1px solid var(--rule);
  background: var(--ink);
}
.nz-flowlist__branch::before {
  content: '\2715'; /* ✕ */
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--red-text);
}
.nz-flowlist__branch.is-loop {
  border-style: dashed;
  border-color: color-mix(in oklab, var(--hue-amber) 70%, var(--rule));
}
.nz-flowlist__branch.is-loop::before {
  content: '\21BA'; /* ↺ */
  font-size: 15px;
  top: 8px;
  color: var(--hue-amber);
}
.nz-flowlist__branch.is-fork {
  border-style: dotted;
  border-color: var(--paper-dim);
}
.nz-flowlist__branch.is-fork::before {
  content: '\25C7'; /* ◇ a situation that splits again */
  font-size: 13px;
  color: var(--text-dim);
}
.nz-flowlist__branch .nz-flowlist__branches {
  margin-top: 8px;
}
.nz-flowlist__when {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-flowlist__branch.is-end > .nz-flowlist__when {
  color: var(--red-text);
}
.nz-flowlist__bline {
  font-size: 15px;
}
.nz-flowlist__blabel {
  font-weight: 700;
  color: var(--paper);
}
.nz-flowlist__bsub {
  color: var(--paper-dim);
}
.nz-flowlist__loop {
  font-size: 13px;
  color: var(--text-dim);
}
.nz-flowlist__loop i {
  color: var(--hue-amber);
  font-size: 11px;
}
.nz-flowlist__branch .nz-flowlist__cites {
  margin-top: 6px;
}

@media (min-width: 1180px) {
  .nz-flow__canvas {
    display: block;
  }
  /* The SVG's top band is empty left of column 7 (only the report branches
     climb that high): the caption + legend sit there instead of below. */
  .nz-flow {
    position: relative;
  }
  .nz-flow__caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 72%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .nz-flow__legend {
    margin: 0;
  }
}
@media (min-width: 640px) {
  .nz-flowlist__branches {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
  }
  .nz-flowlist__branch .nz-flowlist__branches {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Najčešće zamke */
.nz-traps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.nz-trap {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 14px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
}
.nz-trap__n {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-text);
  font-variant-numeric: tabular-nums;
}
.nz-trap__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.nz-trap__body > * {
  margin: 0;
}
.nz-trap__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.nz-trap__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--paper-dim);
  text-wrap: pretty;
}
.nz-trap__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 4px !important;
}
.nz-trap__more {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 820px) {
  .nz-traps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Što još nije potvrđeno */
.nz-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
.nz-open__group {
  min-width: 0;
  padding: 20px 22px 8px;
  border: 1px solid var(--rule);
}
.nz-open__group.is-nepotvrdeno {
  border: 1.5px solid var(--hue-amber);
}
.nz-open__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
}
.nz-open__head > * {
  margin: 0;
}
.nz-open__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
}
.nz-open__count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}
.nz-open__note {
  font-size: 13.5px;
  color: var(--text-dim);
}
.nz-open__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-open__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.nz-open__item > * {
  margin: 0;
}
.nz-open__q {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}
.nz-open__a {
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper-dim);
}
.nz-open__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-open__item .nz-more {
  margin-top: 0;
}
@media (min-width: 1024px) {
  .nz-open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.nz-pregled__disclaimer {
  margin-top: var(--s-5);
}
.nz-pregled__disc {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.nz-pregled__disclaimer .nz-callout__body > p {
  margin: 0;
}

@media (max-width: 819.98px) {
  /* Compact: one line per item — short label | value | one icon chip. */
  .nz-status {
    margin-top: -16px; /* the 44px tap rows below cost height; keep the h1 high */
  }
  .nz-status__asof {
    padding-bottom: 2px;
    font-size: 10px;
  }
  .nz-status__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .nz-status__item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 8px;
    padding: 7px 0; /* 30px chip + 7 + 7 + rule: each row's chip owns ≥ 44px */
    border-left: 0;
  }
  .nz-status__item + .nz-status__item {
    border-top: 1px solid var(--rule);
  }
  .nz-status__label {
    font-size: 10px;
  }
  .nz-status__lfull,
  .nz-status__afull {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nz-status__lshort,
  .nz-status__ashort {
    display: inline;
  }
  .nz-status__value {
    font-size: 14px;
    gap: 2px 6px;
  }
  .nz-status__value .nz-badge {
    padding: 2px 6px;
    font-size: 9.5px;
  }
  .nz-status__after {
    font-size: 13px;
  }
  /* First source only, as an icon chip (its label stays in aria-label). */
  .nz-status__cites .nz-cite:not(:first-child) {
    display: none;
  }
  .nz-status__cites .nz-cite {
    justify-content: center;
    min-width: 30px;
    padding: 2px 8px;
  }
  .nz-status__cites .nz-cite__label {
    display: none;
  }
  .nz-status__cites .nz-cite::before {
    inset: -11px -8px;
  }
  .nz-status__fn {
    padding: 8px 0 10px;
    font-size: 12px;
  }
  .nz-hero {
    gap: 18px;
  }
  .nz-hero__actions {
    order: 1;
    margin-top: 0;
  }
  .nz-hero__lead {
    order: 2;
  }
  .nz-measure {
    padding: 18px 16px;
  }
  .nz-measure__facts {
    --facts-key: 108px;
  }
  .nz-open__group {
    padding: 16px 16px 4px;
  }
  .nz-shead {
    grid-template-columns: minmax(0, 1fr);
  }
  .nz-shead__aside {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}
@media (max-width: 559.98px) {
  .nz-hero__actions .nz-btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 419.98px) {
  .nz-measure__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .nz-measure__facts dd {
    padding-bottom: 8px;
  }
}

/* ==========================================================================
   PRAVILA
   ========================================================================== */
.nz-pravila__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.nz-pravila__legend .nz-badge + span {
  margin-right: 8px;
}
.nz-pravila__legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nz-pravila__empty {
  padding: 40px 0;
}
.nz-pravila__empty > * {
  margin: 0 0 8px;
}

.nz-topic {
  padding: 4px 0 44px;
  scroll-margin-top: 80px;
}
.nz-topic + .nz-topic,
.nz-pravila__empty + .nz-topic {
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.nz-pravila__empty + .nz-topic {
  border-top: 0;
  padding-top: 4px;
}
.nz-topic__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nz-topic__head > * {
  margin: 0;
}
.nz-topic__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-topic__n {
  color: var(--red-text);
  font-variant-numeric: tabular-nums;
}
.nz-topic__icon {
  color: var(--paper-dim);
  font-size: 12px;
}
.nz-topic__flag {
  color: var(--paper-dim);
}
.nz-topic__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.nz-topic__summary {
  max-width: 66ch;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--paper-dim);
  text-wrap: pretty;
}

.nz-facts-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.nz-fact {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0 14px;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.nz-fact__n {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.nz-fact__body {
  min-width: 0;
}
.nz-fact__text {
  max-width: 74ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper);
  text-wrap: pretty;
}
.nz-fact__text .nz-badge {
  margin-left: 4px;
  vertical-align: 0.1em;
}
.nz-fact__cites {
  display: flex;
  margin-top: 10px;
}
.nz-fact__table {
  max-width: 560px;
  margin-top: 12px;
}

/* Extra sections: troškovi, pojmovnik, pitanja */
.nz-topic--extra {
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}

/* Eligible-costs browser */
.nz-costs__lead {
  max-width: 70ch;
  margin: 0 0 12px;
  font-size: 15.5px;
  color: var(--paper-dim);
}
.nz-costs__conds {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-costs__cond {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 10px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.nz-costs__cn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--paper);
}
.nz-costs__ctext {
  margin: 1px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.nz-costs__rights {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--paper);
}
.nz-costs__rights > i {
  padding-top: 4px;
  color: var(--text-dim);
}
@media (min-width: 1180px) {
  .nz-costs__conds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nz-costs__browser {
  --surface: var(--panel);
  margin-top: 26px;
  padding: 2px 20px 0;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.nz-costs__tabs .nz-tabs__tab {
  gap: 8px;
}
.nz-costs__tabcount {
  padding: 1px 7px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
}
.nz-costs__tabs .nz-tabs__tab[aria-selected='true'] .nz-costs__tabcount {
  border-color: var(--paper-dim);
  color: var(--paper);
}
.nz-costs__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 28px;
  padding: 16px 0 4px;
}
.nz-costs__tools .nz-search {
  flex: 1 1 300px;
}
.nz-costs__code {
  flex: 0 1 300px;
}
.nz-costs__panel {
  padding-bottom: 6px;
}
.nz-costs__status {
  margin: 12px 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.nz-costs__codenote {
  max-width: 76ch;
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper-dim);
}
.nz-costs__list {
  max-height: min(640px, 70vh);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.nz-costs__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 14px;
  padding: 11px 4px 11px 0;
  border-bottom: 1px solid var(--rule);
}
.nz-costs__item:last-child {
  border-bottom: 0;
}
.nz-costs__n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.nz-costs__ibody {
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
}
.nz-costs__ibody::first-letter {
  text-transform: uppercase;
}
.nz-costs__tags {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}
.nz-costs__empty {
  margin: 0;
  padding: 24px 0 28px;
  color: var(--text-dim);
}
.nz-costs__notes {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.nz-costs__notes li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--paper-dim);
}
.nz-costs__notes li > i {
  padding-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
}
@media (max-width: 819.98px) {
  .nz-costs__browser {
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    border-inline: 0;
  }
  .nz-costs__code {
    flex: 1 1 100%;
  }
  .nz-costs__item {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .nz-costs__icite {
    grid-column: 2;
  }
}

/* Glossary */
.nz-gloss {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 40px;
  margin: 0;
}
.nz-gloss__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 15px;
  border-top: 1px solid var(--rule);
}
.nz-gloss__term {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}
.nz-gloss dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-dim);
}
@media (min-width: 1180px) {
  .nz-gloss {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FAQ accordion */
.nz-faq__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
}
.nz-faq__total {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-faq__list {
  border-top: 1px solid var(--rule);
}
.nz-faq__item {
  border-bottom: 1px solid var(--rule);
}
.nz-faq__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 14px;
  min-height: 56px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
}
.nz-faq__summary::-webkit-details-marker {
  display: none;
}
.nz-faq__q {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--dur-hover) ease;
}
.nz-faq__summary:hover .nz-faq__q {
  color: var(--red-text);
}
.nz-faq__chev {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 11px;
  color: var(--paper-dim);
  transition: transform var(--dur-chip) ease, border-color var(--dur-chip) ease;
}
.nz-faq__summary:hover .nz-faq__chev {
  border-color: var(--paper-dim);
}
.nz-faq__item[open] .nz-faq__chev {
  transform: rotate(45deg);
  border-color: var(--paper);
  color: var(--paper);
}
.nz-faq__body {
  padding: 0 46px 20px 0;
}
.nz-faq__a {
  max-width: 70ch;
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--paper-dim);
}
.nz-faq__cites {
  display: flex;
}
@media (max-width: 819.98px) {
  .nz-faq__summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nz-faq__summary .nz-badge {
    grid-row: 2;
    justify-self: start;
  }
  .nz-faq__chev {
    grid-column: 2;
    grid-row: 1;
  }
  .nz-faq__body {
    padding-right: 0;
  }
}

/* ==========================================================================
   RADIONICA
   ========================================================================== */
.nz-ws__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 40px;
  margin-top: 8px;
}
.nz-ws__facts {
  --facts-key: 132px;
}
.nz-ws__speakers {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-ws__speaker {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}
.nz-ws__sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--speaker, var(--muted));
}
.nz-ws__srole {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
}
.nz-ws__notice {
  align-self: start;
}
.nz-ws__notice .nz-callout__body > p {
  margin: 0 0 10px;
}
@media (min-width: 1024px) {
  .nz-ws__meta {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.nz-ws {
  padding-bottom: 40px;
}
.nz-ws + .nz-ws {
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.nz-ws__topic {
  padding: 24px 0 18px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.nz-ws__thead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 12px;
}
.nz-ws__tn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-text);
  font-variant-numeric: tabular-nums;
}
.nz-ws__ttitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.nz-ws__trange {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.nz-ws__points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-ws__point {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 14px;
  padding: 9px 0;
}
.nz-ws__time {
  justify-self: start;
  font-variant-numeric: tabular-nums;
}
.nz-ws__time .nz-cite__icon {
  display: none;
}
.nz-ws__pbody {
  min-width: 0;
}
.nz-ws__text {
  max-width: 74ch;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.nz-ws__who {
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.nz-ws__note {
  display: flex;
  gap: 10px;
  max-width: 74ch;
  margin: 8px 0 2px;
  padding: 10px 12px;
  border: 1px solid color-mix(in oklab, var(--hue-amber) 60%, var(--rule));
  background: color-mix(in oklab, var(--hue-amber) 9%, transparent);
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
}
.nz-ws__note > i {
  padding-top: 3px;
  color: var(--hue-amber);
}

.nz-promised {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-promised__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 0 16px 20px;
  border-top: 1px solid var(--rule);
}
.nz-promised__item::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue-amber);
}
.nz-promised__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
}
@media (min-width: 820px) {
  .nz-promised {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nz-wst {
  --surface: var(--panel);
  border: 1px solid var(--rule);
  background: var(--panel);
}
.nz-wst__scroll {
  height: min(74vh, 780px);
  padding: 0 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nz-wst__scroll:focus-visible {
  outline-offset: -3px;
}
.nz-wst .nz-tr__bar {
  padding-top: 14px;
}
.nz-wst .nz-pvstate {
  min-height: 280px;
}
.nz-wst .nz-callout {
  margin-top: 20px;
}

@media (max-width: 819.98px) {
  .nz-ws__facts {
    --facts-key: 96px;
  }
  .nz-ws__point {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 0;
  }
  .nz-ws__trange {
    margin-left: 0;
    flex-basis: 100%;
  }
  .nz-wst {
    margin-inline: calc(-1 * var(--gutter));
    border-inline: 0;
  }
  .nz-wst__scroll {
    height: 72dvh;
    padding: 0 var(--gutter) 16px;
  }
  .nz-wst .nz-tr__cue {
    padding-inline: 12px 0;
  }
}

/* ==========================================================================
   IZVORI
   ========================================================================== */
.nz-izvori__note {
  max-width: 880px;
  margin-top: 6px;
}
.nz-izvori__note .nz-callout__body > p {
  margin: 0;
}
.nz-izvori__note .nz-badge {
  margin-right: 4px;
}
.nz-srcfilter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0 22px;
}
.nz-srcfilter__label {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-srcfilter__chip {
  min-height: 32px;
  font-size: 10.5px;
}
.nz-srcfilter__chip i {
  font-size: 11px;
}
@media (max-width: 819.98px) {
  .nz-srcfilter {
    row-gap: 12px; /* wrapped rows: 32px chip + 12 = a 44px target each */
  }
}
.nz-srcfilter__n {
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.nz-srcgroup .nz-shead {
  margin-bottom: 18px;
}
.nz-srcgroup__count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  vertical-align: 0.3em;
}
.nz-srcs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nz-src {
  --surface: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px 20px 14px;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.nz-src > * {
  margin: 0;
}
.nz-src__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nz-src__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  background: var(--ink);
  font-size: 16px;
  color: var(--src-hue, var(--paper-dim));
}
.nz-src--pdf {
  --src-hue: var(--hue-red);
}
.nz-src--xlsx {
  --src-hue: var(--hue-green);
}
.nz-src--docx {
  --src-hue: var(--hue-blue);
}
.nz-src--img {
  --src-hue: var(--hue-violet);
}
.nz-src--transcript {
  --src-hue: var(--hue-amber);
}
.nz-src__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nz-src__part ~ .nz-src__part::before {
  content: '·';
  margin: 0 7px;
}
.nz-src__host {
  text-transform: none;
  letter-spacing: 0.02em;
}
.nz-src__draft {
  flex: 0 0 auto;
  margin-left: auto;
}
.nz-src__title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nz-src__short {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.nz-src__full {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--paper-dim);
}
.nz-src__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.nz-src__meta time {
  color: var(--paper-dim);
}
.nz-src__note {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.nz-src__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.nz-src__actions .nz-btn {
  gap: 7px;
  padding: 7px 11px;
  letter-spacing: 0.02em;
}
.nz-src__actions .nz-btn--quiet {
  padding-inline: 8px;
}
.nz-src__ext {
  font-family: system-ui, sans-serif;
  font-size: 0.95em;
}
@media (max-width: 819.98px) {
  .nz-src {
    padding: 16px 16px 12px;
  }
  .nz-src__actions .nz-btn {
    flex: 1 1 auto;
  }
}

/* ── "na vrh" (Pravila, Radionica) ─────────────────────────────────────── */
.nz-totop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 24px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-overlay);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-chip) ease, transform var(--dur-chip) ease, visibility 0s linear var(--dur-chip),
    border-color var(--dur-hover) ease;
}
.nz-totop.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-chip) ease, transform var(--dur-chip) ease, border-color var(--dur-hover) ease;
}
.nz-totop:hover {
  border-color: var(--paper-dim);
}
@media (max-width: 819.98px) {
  .nz-totop {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .nz-totop__t {
    display: none;
  }
}

/* ── Pravila: filters, collapsible topics on phones ────────────────────── */
.nz-pravila__filters {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  max-width: 760px;
}
.nz-pravila__filters .nz-search {
  flex: 1 1 320px;
}
.nz-pravila__open {
  min-height: 34px;
}
.nz-pravila__opencount {
  font-variant-numeric: tabular-nums;
}
.nz-topic__toggle {
  display: none;
}
@media (max-width: 819.98px) {
  .nz-topic__toggle {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
  }
  .nz-topic.is-collapsed .nz-facts-list {
    display: none;
  }
  .nz-topic.is-collapsed {
    padding-bottom: 28px;
  }
  .is-searching .nz-topic.is-collapsed .nz-facts-list {
    display: block;
  }
  .is-searching .nz-topic__toggle {
    display: none;
  }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .nz-toc,
  .nz-search,
  .nz-pagehead__tools,
  .nz-srcfilter,
  .nz-keytiles__more,
  .nz-hero__actions,
  .nz-src__actions,
  .nz-totop,
  .nz-topic__toggle,
  .nz-flow__stepsum,
  .nz-faq__bar {
    display: none !important;
  }
  .nz-docs {
    display: block;
  }
  .nz-keytiles.is-collapsed .is-extra {
    display: flex !important;
  }
  .nz-costs__list,
  .nz-wst__scroll {
    max-height: none;
    height: auto;
    overflow: visible;
  }
  .nz-flow__canvas {
    display: none !important;
  }
  .nz-flowlist,
  .nz-topic.is-collapsed .nz-facts-list {
    display: block !important;
  }
  /* A closed <details> hides its content even in print; JS opens it on
     beforeprint, and this covers print emulation / engines with
     ::details-content. */
  .nz-flow__steps::details-content {
    content-visibility: visible;
    display: block;
  }
  .nz-flow__caption {
    position: static !important;
  }
}
