/*
 * SPDX-FileCopyrightText: 2026 dtwinuz and bitg contributors
 *
 * SPDX-License-Identifier: MIT OR Apache-2.0
 */

/* /qilingan-ishlar/: raqamlar, "bir bosish ichida" chizg'ichi, 7 kunlik jurnal, to'liq ro'yxat.
   Hamma klass nt- prefiksli. Inline style yo'q (CSP style-src 'self'): o'lchamlar SVG atributida yoki JS (CSSOM) orqali. */

.dc-article--full { max-width: 1180px; }

.nt-sec { margin: 72px 0 0; }
/* maqola uslubi (.dc-article ul/li/a) bu bloklarga tegmasin */
.dc-article :is(.nt-kpi, .nt-rings, .nt-ch, .nt-items) { padding-left: 0; }
.dc-article :is(.nt-kpi, .nt-rings, .nt-ch, .nt-items) li + li { margin-top: 0; }
.dc-article :is(.nt-kpi, .nt-ch, .nt-it__meta) a { text-decoration: none; }
.nt-sec > h2 { margin-top: 0; }
.nt-kicker { margin: 0 0 6px; font: 600 12.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.nt-sub { margin: 10px 0 0; max-width: 64ch; color: var(--muted); }

/* ---------- KPI qatori ---------- */
.nt-kpi { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nt-kpi li { margin: 0; padding: 20px 18px 22px 0; border-bottom: 1px solid var(--line); }
.nt-kpi li + li { margin: 0; }
.nt-kpi__v { display: flex; align-items: baseline; gap: 6px; font: 700 clamp(34px, 4.6vw, 54px)/1 var(--sans); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.nt-kpi__v small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.nt-kpi__l { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dc-article .nt-kpi__l a { color: inherit; }
.dc-article .nt-kpi__l a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .nt-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Bir bosish ichida (signature) ---------- */
.nt-zoom { position: relative; height: 300vh; margin-top: 56px; }
.nt-zoom__stage { position: sticky; top: 64px; height: calc(100vh - 64px); min-height: 520px; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
/* bosqich balandligi yetmasa chizg'ich siqilib yo'qolmasin */
.nt-zoom__stage > * { flex-shrink: 0; }
.nt-zoom__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.nt-zoom__head h2 { margin: 0; }
.nt-zoom__span { font: 600 15px/1.3 var(--mono); color: var(--muted); }
.nt-zoom__span b { color: var(--text); font-weight: 650; }
.nt-ruler { position: relative; margin: 40px 0 0; height: 176px; overflow: hidden; }
.nt-gap { position: absolute; left: 0; top: 56px; width: 100%; height: 58px; border-radius: 3px; background: var(--accent-soft); transform-origin: left center; }
.nt-gap__lbl { position: absolute; right: 12px; top: 74px; font-size: 13.5px; color: var(--accent-ink); white-space: nowrap; transition: opacity .5s var(--soft); }
.nt-zoom.is-close .nt-gap__lbl { opacity: 0; }
.nt-bpos { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.nt-tl { position: absolute; top: 100px; font: 500 12px/1 var(--mono); color: var(--faint); white-space: nowrap; transform: translateX(-50%); }
.nt-tl[data-t="0"] { left: 0; transform: none; }
.nt-tl[data-t="1"] { left: 25%; }
.nt-tl[data-t="2"] { left: 50%; }
.nt-tl[data-t="3"] { left: 75%; }
.nt-tl[data-t="4"] { left: 100%; transform: translateX(-100%); }
.nt-ruler__track { position: absolute; left: 0; right: 0; top: 84px; height: 2px; background: var(--line2); }
.nt-ruler__ticks { position: absolute; left: 0; right: 0; top: 76px; height: 18px; display: flex; justify-content: space-between; }
.nt-ruler__ticks i { width: 1px; height: 9px; margin-top: 9px; background: var(--line2); }
.nt-ruler__ticks i:nth-child(5n+1) { height: 18px; margin-top: 0; background: var(--faint); }
.nt-slice { position: absolute; left: 0; top: 56px; height: 58px; width: 100%; border-radius: 3px; background: var(--accent); transform-origin: left center; }
.nt-slice__lbl { position: absolute; left: 0; top: 128px; white-space: nowrap; font-size: 14.5px; line-height: 1.35; color: var(--text); opacity: 0; transition: opacity .6s var(--soft); }
.nt-slice__lbl b { color: var(--accent-ink); }
.nt-zoom.is-close .nt-slice__lbl { opacity: 1; }
.nt-key { position: absolute; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 9px;
  background: var(--key-top); color: var(--key-ink); font: 600 17px/1 var(--sans);
  box-shadow: 0 1px 0 var(--line2), 0 4px 0 var(--key-side), 0 10px 22px -12px rgb(0 0 0 / .35); }
.nt-key--a { left: 0; }
.nt-key--b { left: 0; margin-left: -46px; }
.nt-key__lbl { position: absolute; top: 128px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.nt-key__lbl--b { left: 0; transform: translateX(-100%); }
.nt-zoom__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 40px 0 0; border-top: 1px solid var(--line); }
.nt-zoom__foot div { padding: 16px 16px 0 0; }
.nt-zoom__foot b { display: block; font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nt-zoom__foot span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.nt-zoom__hint { margin: 22px 0 0; font-size: 13px; color: var(--faint); }
.nt-zoom.is-close .nt-zoom__hint { visibility: hidden; }
/* JS yo'q yoki harakat kamaytirilgan: chizg'ich oxirgi holatda, sticky yo'q */
.nt-zoom.is-static { height: auto; }
.nt-zoom.is-static .nt-zoom__stage { position: static; height: auto; min-height: 0; }
.nt-zoom.is-static .nt-zoom__hint { display: none; }
.nt-zoom.is-static .nt-slice { transform: scaleX(.108); }
.nt-zoom.is-static .nt-bpos { transform: translateX(400%); }
.nt-zoom.is-static .nt-gap { transform: scaleX(4); } /* 2,7 µs / 25 µs — JS bo'lmasa oxirgi kadr */
@media (max-width: 700px) {
  .nt-zoom__foot { grid-template-columns: 1fr; }
  .nt-zoom__foot div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nt-ruler { height: 200px; }
  .nt-zoom__stage { justify-content: flex-start; padding-top: 28px; }
  .nt-zoom__foot div:nth-child(2), .nt-zoom__hint { display: none; }
  .nt-zoom__foot div { padding: 10px 0; }
  .nt-key__lbl--b { top: 152px; }
  .nt-gap__lbl { display: none; }
}

/* ---------- O'lchovlar: halqalar va resurs ustunlari ---------- */
.nt-rings { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nt-rings li { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.nt-ring { width: 92px; height: 92px; transform: rotate(-90deg); }
.nt-ring circle { fill: none; stroke-width: 9; }
.nt-ring__bg { stroke: var(--subtle); }
.nt-ring__fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--soft); }
.nt-anim .nt-ring__fg { stroke-dashoffset: 100; }
.nt-anim.is-in .nt-ring__fg { stroke-dashoffset: var(--nt-off, 0); }
.nt-rings b { display: block; font: 700 28px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nt-rings span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.nt-rings b span { display: inline; margin: 0; font: inherit; color: inherit; }
@media (max-width: 860px) { .nt-rings { grid-template-columns: 1fr; } }

.nt-bars { margin: 34px 0 0; }
.nt-bars h3 { margin: 0 0 10px; font-size: 15px; }
.nt-bars + .nt-bars { margin-top: 28px; }
.nt-bars__row { display: grid; grid-template-columns: 190px 1fr 110px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.nt-bars__row:first-of-type { border-top: 1px solid var(--line); }
.nt-bars__name { font-size: 14.5px; }
.nt-bars__name small { display: block; color: var(--faint); font-size: 12.5px; }
.nt-bars__val { text-align: right; font: 600 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.nt-bars svg { display: block; width: 100%; height: 14px; overflow: visible; }
.nt-bars rect { fill: var(--line2); }
.nt-bars__row.is-us rect { fill: var(--accent); }
.nt-bars__row.is-us .nt-bars__name { font-weight: 650; }
@media (max-width: 640px) { .nt-bars__row { grid-template-columns: 1fr 96px; } .nt-bars__row svg { grid-column: 1 / -1; grid-row: 2; } }

/* SVG ichidagi o'sish animatsiyasi (JS .nt-anim -> .is-in) */
.nt-anim .nt-grow { transform-box: fill-box; transition: transform 1.2s var(--soft); }
.nt-anim .nt-grow--x { transform-origin: left center; transform: scaleX(0); }
.nt-anim .nt-grow--y { transform-origin: center bottom; transform: scaleY(0); }
.nt-anim.is-in .nt-grow { transform: none; }
.nt-anim .nt-fade { opacity: 0; transition: opacity .8s var(--soft) .6s; }
.nt-anim.is-in .nt-fade { opacity: 1; }

/* ---------- 7 kunlik jurnal ---------- */
.nt-days { margin: 30px 0 0; }
/* styles.css dagi ikonka qoidasi (svg { stroke: currentColor }) grafiklarga o'tmasin */
.nt-days svg, .nt-bars svg { stroke: none; stroke-width: 0; }
.nt-days svg { display: block; width: 100%; height: auto; overflow: visible; }
.nt-d__bar { fill: var(--accent); }
.nt-d__bar--pr { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.nt-d__base { stroke: var(--line2); stroke-width: 1; }
.nt-d__day { fill: var(--muted); font: 600 13px var(--sans); }
.nt-d__num { fill: var(--text); font: 700 14px var(--sans); }
.nt-d__pin line { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 3; }
.nt-d__pin rect { fill: var(--mark); }
.nt-d__pin text { fill: var(--bg); font: 700 12px var(--mono); }
.nt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.nt-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; background: var(--accent); }
.nt-legend i.is-pr { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.nt-legend i.is-rel { background: var(--mark); }

/* ---------- Qayerda bor ---------- */
.nt-ch { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.nt-ch li { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dc-article .nt-ch a, .nt-ch__n { color: var(--text); font-size: 15px; }
.dc-article .nt-ch a:hover { color: var(--accent-ink); }
.nt-ch small { display: block; color: var(--faint); font-size: 12.5px; }
@media (max-width: 960px) { .nt-ch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nt-ch { grid-template-columns: 1fr; } }

.nt-st { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font: 600 12px/1.6 var(--sans); white-space: nowrap; }
.nt-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nt-st--live { color: var(--ok); background: var(--ok-soft); }
.nt-st--review { color: var(--warn); background: var(--warn-soft); }
.nt-st--waiting, .nt-st--ready { color: var(--muted); background: var(--subtle); }
.nt-st--live::before { animation: nt-pulse 2.4s var(--soft) infinite; }
@keyframes nt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- To'liq ro'yxat ---------- */
.nt-tools { position: sticky; top: 64px; z-index: 2; margin: 26px 0 0; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.nt-tools__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nt-tools__row + .nt-tools__row { margin-top: 10px; }
.nt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font: 500 13.5px/1.2 var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.nt-chip:hover { color: var(--text); border-color: var(--line2); }
.nt-chip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.nt-chip span { font-variant-numeric: tabular-nums; opacity: .75; }
.nt-search { flex: 1 1 220px; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); color: var(--text); font: 14.5px var(--sans); }
.nt-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.nt-count { margin-left: auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nt-nojs .nt-tools { display: none; }

.nt-day { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0 8px; border-bottom: 1px solid var(--line); }
.nt-day[hidden], .nt-it[hidden] { display: none; }
.nt-day__h { position: sticky; top: 176px; align-self: start; margin: 0; font-size: 15px; font-weight: 650; }
.nt-day__h small { display: block; margin-top: 4px; font-weight: 500; color: var(--faint); font-size: 13px; }
.nt-items { list-style: none; margin: 0; padding: 0; }
.nt-items li.nt-it { margin: 0 0 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.nt-it h3 { margin: 0; font-size: 16.5px; line-height: 1.4; font-weight: 600; }
.nt-it p { grid-column: 1 / -1; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.nt-it__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--faint); }
.dc-article .nt-it__meta a { color: var(--accent-ink); }
.dc-article .nt-it__meta a:hover { text-decoration: underline; }
.nt-cat { font: 600 11.5px/1.6 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.nt-empty { padding: 28px 0; color: var(--muted); }
@media (max-width: 760px) {
  .nt-day { grid-template-columns: 1fr; gap: 12px; }
  .nt-day__h { position: static; }
  .nt-tools { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-anim .nt-grow, .nt-ring__fg, .nt-slice__lbl, .nt-gap__lbl { transition: none; }
  .nt-st--live::before { animation: none; }
}
