/* nasl-viz — نمودار و اینفوگرافیک مقاله‌ها (ieltscenter-viz.php). توکن‌ها از nasl-ds.css؛ انتخابگرها هم‌وزن ابزارها (tools.css). */
html.nf-ds #brx-content .nf-viz{margin:2em 0;padding:18px 20px 14px;border:1px solid var(--border-card);border-radius:var(--radius-lg);background:var(--surface-card);box-shadow:var(--shadow-card);font-size:15px;line-height:1.8;color:var(--text-body)}
html.nf-ds #brx-content .nf-viz :where(p,li,ol,ul){margin:0;padding:0;font-size:inherit;line-height:inherit}
html.nf-ds #brx-content .nf-viz :where(ol,ul){list-style:none}
html.nf-ds #brx-content .nf-viz .nfv-head{display:flex;flex-direction:column;gap:2px;margin:0 0 14px}
html.nf-ds #brx-content .nf-viz .nfv-title{font-size:17px;font-weight:800;line-height:1.6;color:var(--text-heading)}
html.nf-ds #brx-content .nf-viz .nfv-cap{font-size:14px;line-height:1.7;color:var(--text-muted)}
html.nf-ds #brx-content .nf-viz .nfv-src{margin-top:12px;font-size:12.5px;line-height:1.7;color:var(--text-muted)}
html.nf-ds #brx-content .nf-viz .nfv-src a{color:inherit;text-decoration:underline}
html.nf-ds #brx-content .nf-viz .nfv-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 10px;font-size:13px;color:var(--text-body)}
html.nf-ds #brx-content .nf-viz .nfv-legend span{display:inline-flex;align-items:center;gap:6px}
html.nf-ds #brx-content .nf-viz .nfv-legend i{display:inline-block;flex:none}
html.nf-ds #brx-content .nf-viz .nfv-table{margin-top:12px;font-size:14px}
html.nf-ds #brx-content .nf-viz .nfv-table summary{cursor:pointer;font-weight:700;color:var(--accent-primary-hover)}
html.nf-ds #brx-content .nf-viz .nfv-table table{margin-top:8px;font-size:13.5px}
html.nf-ds #brx-content .nf-viz .nfv-table ul{margin-top:8px;padding-inline-start:1.2em;list-style:disc}

/* ---------------------------------------------------------------- steps: نقشه‌ی راه عمودی */
html.nf-ds #brx-content .nf-viz .nfv-steps{display:flex;flex-direction:column;counter-reset:none}
html.nf-ds #brx-content .nf-viz .nfv-step{position:relative;display:grid;grid-template-columns:36px 1fr;gap:12px;padding-bottom:18px}
html.nf-ds #brx-content .nf-viz .nfv-step:last-child{padding-bottom:0}
html.nf-ds #brx-content .nf-viz .nfv-step:not(:last-child)::before{content:"";position:absolute;top:36px;bottom:0;right:17px;width:2px;background:var(--nf-teal-100)}
html.nf-ds #brx-content .nf-viz .nfv-n{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--nf-teal-100);color:var(--accent-primary-hover);font-weight:800;font-size:15px}
html.nf-ds #brx-content .nf-viz .nfv-step-b{display:flex;flex-direction:column;gap:2px;padding-top:4px}
html.nf-ds #brx-content .nf-viz .nfv-when{font-size:12.5px;font-weight:700;color:var(--accent-primary-hover)}
html.nf-ds #brx-content .nf-viz .nfv-step-t{font-size:16px;font-weight:800;line-height:1.6;color:var(--text-heading)}
html.nf-ds #brx-content .nf-viz .nfv-step-x{font-size:14.5px;line-height:1.8}
html.nf-ds #brx-content .nf-viz .nfv-step-l{font-size:14px;font-weight:700;color:var(--accent-primary-hover)}

/* ---------------------------------------------------------------- ranges: دمبل (حلقه = حداقل هر مهارت، دایره‌ی پر = نمره‌ی کل) */
html.nf-ds #brx-content .nf-viz .nfv-k-lo{width:12px;height:12px;border-radius:50%;border:2px solid var(--accent-primary-hover);background:var(--surface-card);box-sizing:border-box}
html.nf-ds #brx-content .nf-viz .nfv-k-hi{width:12px;height:12px;border-radius:50%;background:var(--accent-primary)}
html.nf-ds #brx-content .nf-viz .nfv-tabs{display:flex;flex-wrap:wrap;gap:6px}
html.nf-ds #brx-content .nf-viz .nfv-tab-i{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
html.nf-ds #brx-content .nf-viz .nfv-tab{min-height:38px;padding:6px 14px;border:1px solid var(--border-soft);border-radius:var(--radius-pill);font-size:13.5px;font-weight:700;line-height:1.7;color:var(--text-body);background:var(--surface-card);cursor:pointer}
html.nf-ds #brx-content .nf-viz .nfv-tab-i:checked+.nfv-tab{background:var(--nf-teal-100);border-color:var(--accent-primary);color:var(--accent-primary-hover)}
html.nf-ds #brx-content .nf-viz .nfv-tab-i:focus-visible+.nfv-tab{outline:2px solid var(--accent-primary);outline-offset:2px}
html.nf-ds #brx-content .nf-viz .nfv-tabs .nfv-panel{display:none;flex-basis:100%;margin-top:10px}
html.nf-ds #brx-content .nf-viz .nfv-tab-i:nth-of-type(1):checked~.nfv-p0,html.nf-ds #brx-content .nf-viz .nfv-tab-i:nth-of-type(2):checked~.nfv-p1,
html.nf-ds #brx-content .nf-viz .nfv-tab-i:nth-of-type(3):checked~.nfv-p2,html.nf-ds #brx-content .nf-viz .nfv-tab-i:nth-of-type(4):checked~.nfv-p3{display:block}
html.nf-ds #brx-content .nf-viz .nfv-group{font-weight:700;color:var(--text-heading)}
html.nf-ds #brx-content .nf-viz .nfv-axis,html.nf-ds #brx-content .nf-viz .nfv-row{display:grid;grid-template-columns:minmax(104px,36%) 1fr;gap:10px;align-items:center}
html.nf-ds #brx-content .nf-viz .nfv-ticks{position:relative;height:20px;margin:0 8px}
html.nf-ds #brx-content .nf-viz .nfv-ticks i{position:absolute;top:0;transform:translateX(50%);font-style:normal;font-size:12px;color:var(--text-muted)}
html.nf-ds #brx-content .nf-viz .nfv-rows{display:flex;flex-direction:column}
html.nf-ds #brx-content .nf-viz .nfv-row{padding:5px 0;border-radius:var(--radius-sm);outline:0}
html.nf-ds #brx-content .nf-viz .nfv-row:hover,html.nf-ds #brx-content .nf-viz .nfv-row:focus-visible{background:var(--surface-tint)}
html.nf-ds #brx-content .nf-viz .nfv-row:focus-visible{box-shadow:0 0 0 2px var(--accent-primary)}
html.nf-ds #brx-content .nf-viz .nfv-lab{font-size:14px;font-weight:700;line-height:1.5;color:var(--text-heading);padding-inline-start:4px}
html.nf-ds #brx-content .nf-viz .nfv-lab small{display:block;font-size:12px;font-weight:500;color:var(--text-muted)}
html.nf-ds #brx-content .nf-viz .nfv-track{position:relative;height:24px;margin:0 8px}
html.nf-ds #brx-content .nf-viz .nfv-grid{position:absolute;top:0;bottom:0;width:1px;background:var(--nf-gray-100)}
html.nf-ds #brx-content .nf-viz .nfv-bar{position:absolute;top:11px;height:2px;background:var(--nf-gray-300)}
html.nf-ds #brx-content .nf-viz .nfv-dot{position:absolute;top:6px;width:12px;height:12px;border-radius:50%;transform:translateX(50%);box-sizing:border-box}
html.nf-ds #brx-content .nf-viz .nfv-lo{border:2px solid var(--accent-primary-hover);background:var(--surface-card)}
html.nf-ds #brx-content .nf-viz .nfv-hi{background:var(--accent-primary);box-shadow:0 0 0 2px var(--surface-card)}
html.nf-ds #brx-content .nf-viz .nfv-val{position:absolute;top:0;margin-right:12px;font-size:12.5px;font-weight:700;line-height:24px;color:var(--text-heading);white-space:nowrap}

/* ---------------------------------------------------------------- gantt: خط زمانی ماهانه */
html.nf-ds #brx-content .nf-viz .nfv-k-bar{width:18px;height:10px;border-radius:3px;background:var(--accent-primary)}
html.nf-ds #brx-content .nf-viz .nfv-k-mile{width:12px;height:12px;border-radius:50%;background:var(--accent-action)}
html.nf-ds #brx-content .nf-viz .nfv-k-line{width:2px;height:14px;background:var(--text-heading)}
html.nf-ds #brx-content .nf-viz .nfv-gantt{overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
html.nf-ds #brx-content .nf-viz .nfv-g-head,html.nf-ds #brx-content .nf-viz .nfv-g-row{display:grid;grid-template-columns:minmax(110px,28%) 1fr;gap:10px;align-items:center;min-width:580px}
html.nf-ds #brx-content .nf-viz .nfv-g-months{display:grid;grid-template-columns:repeat(var(--n),1fr);border-bottom:1px solid var(--border-soft)}
html.nf-ds #brx-content .nf-viz .nfv-g-months i{display:flex;flex-direction:column;align-items:center;font-style:normal;font-size:11px;line-height:1.5;color:var(--text-body);padding-bottom:4px;white-space:nowrap}
html.nf-ds #brx-content .nf-viz .nfv-g-months em{font-style:normal;font-weight:700;color:var(--text-heading)}
html.nf-ds #brx-content .nf-viz .nfv-g-months small{font-size:10.5px;color:var(--text-muted)}
html.nf-ds #brx-content .nf-viz .nfv-g-row{padding:4px 0;border-radius:var(--radius-sm);outline:0}
html.nf-ds #brx-content .nf-viz .nfv-g-row:hover,html.nf-ds #brx-content .nf-viz .nfv-g-row:focus-visible{background:var(--surface-tint)}
html.nf-ds #brx-content .nf-viz .nfv-g-row:focus-visible{box-shadow:0 0 0 2px var(--accent-primary)}
html.nf-ds #brx-content .nf-viz .nfv-g-track{position:relative;height:24px}
html.nf-ds #brx-content .nf-viz .nfv-g-bar{position:absolute;top:5px;height:14px;border-radius:4px;background:var(--accent-primary);box-shadow:0 0 0 1px var(--surface-card)}
html.nf-ds #brx-content .nf-viz .nfv-g-mile{position:absolute;top:6px;width:12px;height:12px;border-radius:50%;background:var(--accent-action);box-shadow:0 0 0 2px var(--surface-card);transform:translateX(50%)}
html.nf-ds #brx-content .nf-viz .nfv-g-line{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--text-heading);opacity:.55;transform:translateX(50%)}
html.nf-ds #brx-content .nf-viz .nfv-g-marks .nfv-g-track{height:34px}
html.nf-ds #brx-content .nf-viz .nfv-g-marks .nfv-g-line{bottom:22px}
html.nf-ds #brx-content .nf-viz .nfv-g-mk{position:absolute;bottom:0;transform:translateX(50%);font-size:11.5px;font-weight:700;line-height:1.5;color:var(--text-heading);white-space:nowrap;background:var(--surface-card);padding:0 4px}

/* ---------------------------------------------------------------- تصویر و اینفوگرافیک مقاله ([nf_img] در apply_article.php) */
html.nf-ds #brx-content .nf-figure{margin:2em auto;max-width:640px}
html.nf-ds #brx-content .nf-figure img{display:block;width:100%;height:auto;border-radius:var(--radius-lg);border:1px solid var(--border-card);box-shadow:var(--shadow-card)}
html.nf-ds #brx-content .nf-figure figcaption{margin-top:8px;font-size:13.5px;line-height:1.7;color:var(--text-muted);text-align:center}

html.nf-ds #brx-content .nf-viz .nfv-g-hint{display:none;margin-top:6px;font-size:12.5px;color:var(--text-muted)}
html.nf-ds #brx-content .nf-figure a{display:block}

@media (max-width:600px){
  html.nf-ds #brx-content .nf-viz{padding:16px 14px 12px}
  html.nf-ds #brx-content .nf-viz .nfv-g-hint{display:block}
  html.nf-ds #brx-content .nf-viz .nfv-axis,html.nf-ds #brx-content .nf-viz .nfv-row{grid-template-columns:minmax(92px,38%) 1fr;gap:6px}
  html.nf-ds #brx-content .nf-viz .nfv-lab{font-size:13px}
}
@media (forced-colors:active){
  html.nf-ds #brx-content .nf-viz .nfv-hi,html.nf-ds #brx-content .nf-viz .nfv-g-bar,html.nf-ds #brx-content .nf-viz .nfv-g-mile{background:CanvasText}
}
/* bars (۱۴۰۵/۰۸/۲۷): یک فام؛ ردیف برجسته تیره‌تر، نه رنگ دیگر */
html.nf-ds #brx-content .nf-viz .nfv-bars .nfv-b{position:absolute;top:5px;right:0;height:14px;border-radius:4px 0 0 4px;background:var(--accent-primary)}
html.nf-ds #brx-content .nf-viz .nfv-bars .is-hl .nfv-b{background:var(--accent-primary-hover)}
html.nf-ds #brx-content .nf-viz .nfv-bars .is-hl .nfv-lab{color:var(--accent-primary-hover)}
html.nf-ds #brx-content .nf-viz .nfv-bars .nfv-val{margin-right:8px}
@media (forced-colors:active){html.nf-ds #brx-content .nf-viz .nfv-bars .nfv-b{background:CanvasText}}
