/* arenyze.com/news — newsroom index + article pages (VERTEX tokens from arz.css).
   --cat is set per article/category (lib/news.js CATEGORIES colours). */

.page-news { --cat: var(--acc); }

/* ================================================================ shared */
.nw-tag { --c: var(--cat, var(--acc)); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); text-decoration: none !important; transition: background var(--t); }
.nw-tag .i { width: 13px; height: 13px; }
.nw-tag:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.nw-meta { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.nw-meta i, .nw-by span i { width: 3px; height: 3px; background: var(--ink-4); display: inline-block; flex: none; }
.nw-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.nw-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.nw-sec-head h2 { margin: 0; font-size: 22px; font-weight: 760; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.nw-sec-head h2::before { content: ''; width: 8px; height: 8px; background: var(--acc); transform: rotate(45deg); }
.nw-sec-head > span, .nw-sec-head > a { font: 500 12.5px var(--f-mono); color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.nw-sec-head > a:hover { color: var(--acc-t); }
.nw-sec-head .i { width: 14px; height: 14px; }

/* ================================================================ banner */
.nw-banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 45% 140% at 88% 10%, rgba(var(--acc-rgb) / .16), transparent 62%), radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg); }
.nw-banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.nw-banner-in { position: relative; z-index: 1; max-width: var(--maxw, 1320px); margin: 0 auto; padding: 46px var(--gut, 20px) 50px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nw-banner h1 { margin: 14px 0 12px; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.025em; font-weight: 800; }
.nw-banner h1 span { color: var(--acc); }
.nw-lead { margin: 0; max-width: 620px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.nw-banner-mark { position: relative; width: 150px; height: 150px; flex: none; display: grid; place-items: center; margin-right: 24px; }
.nw-banner-mark > span { position: relative; z-index: 2; width: 74px; height: 74px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); clip-path: var(--chamfer); box-shadow: 0 0 50px rgba(var(--acc-rgb) / .5); }
.nw-banner-mark > span .i { width: 36px; height: 36px; }
.nw-banner-mark > i { position: absolute; inset: 0; border: 1px solid rgba(var(--acc-rgb) / .35); border-radius: 50%; animation: nwPulse 3.6s var(--ease-out) infinite; }
.nw-banner-mark > i:nth-of-type(2) { animation-delay: 1.2s; }
.nw-banner-mark > i:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes nwPulse { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ================================================================ index */
.nw-index { display: grid; gap: 30px; }
.nw-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nw-filters a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; font: 600 13px var(--f); color: var(--ink-2); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; clip-path: var(--chamfer-br); --cut-s: 7px; transition: background var(--t), color var(--t); }
.nw-filters a b { font: 600 11px var(--f-mono); color: var(--ink-3); padding: 2px 6px; background: var(--s3); }
.nw-filters a .i { width: 15px; height: 15px; }
.nw-filters a:hover { color: var(--ink); background: var(--s2); }
.nw-filters a.is-on { color: var(--acc-ink); background: var(--acc); box-shadow: none; }
.nw-filters a.is-on b { color: var(--acc-ink); background: rgba(0, 0, 0, .14); }
.nw-filters a.is-on .nw-dot { background: var(--acc-ink); box-shadow: none; }
.nw-dot { width: 7px; height: 7px; background: var(--cat); box-shadow: 0 0 10px var(--cat); transform: rotate(45deg); }
.nw-filters .nw-rss { margin-left: auto; background: transparent; box-shadow: none; color: var(--ink-3); }
.nw-filters .nw-rss:hover { color: var(--acc-t); background: transparent; }

.nw-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: stretch; }
.nw-top.is-solo { grid-template-columns: minmax(0, 1fr); }

.nw-feature { position: relative; display: flex; flex-direction: column; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--chamfer); overflow: hidden; }
.nw-feature::before { content: ''; position: absolute; left: 0; top: 0; width: 96px; height: 3px; background: var(--cat); z-index: 2; }
.nw-feature-img { display: block; overflow: hidden; background: var(--bg-2); position: relative; }
.nw-feature-img::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(11, 12, 14, .55)); pointer-events: none; }
.nw-feature-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease-out); }
.nw-feature:hover .nw-feature-img img { transform: scale(1.02); }
.nw-feature-body { padding: 26px 30px 28px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); }
.nw-feature-body h2 { margin: 0; font-size: clamp(23px, 2.3vw, 31px); font-weight: 780; line-height: 1.14; letter-spacing: -.018em; text-wrap: balance; }
.nw-feature-body h2 a, .nw-card h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--acc), var(--acc)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out), color var(--t); }
.nw-feature-body h2 a:hover, .nw-card h3 a:hover { color: #fff; background-size: 100% 2px; }
.nw-feature-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.62; max-width: 760px; }
.nw-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.nw-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--acc-t); }
.nw-live { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(var(--acc-rgb) / .6); animation: nwLive 2s infinite; }
@keyframes nwLive { 70% { box-shadow: 0 0 0 7px rgba(var(--acc-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb) / 0); } }
.nw-by-mini { display: inline-flex; align-items: center; gap: 10px; }
.nw-by-mini img { width: 32px; height: 32px; padding: 3px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nw-by-mini > span { display: grid; gap: 4px; }
.nw-by-mini b { font-size: 13px; }
.nw-cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nw-cta .i { width: 16px; height: 16px; transition: transform var(--t); }
.nw-cta:hover .i { transform: translateX(3px); }

.nw-rail { display: flex; flex-direction: column; gap: 18px; }
.nw-rail-box { background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); padding: 18px; position: relative; }
.nw-rail-box::before { content: ''; position: absolute; left: 0; top: 0; width: 40px; height: 2px; background: var(--acc); }
.nw-rail-h { font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.nw-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.nw-rail-h + .nw-row { border-top: 0; padding-top: 0; }
.nw-row-img { display: block; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); align-self: start; }
.nw-row-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease-out); }
.nw-row:hover .nw-row-img img { transform: scale(1.05); }
.nw-row-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nw-row-n { display: none; }
.nw-row-cat { font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cat); }
.nw-row b { font-size: 14px; line-height: 1.32; font-weight: 680; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--t); }
.nw-row:hover b { color: var(--acc-t); }
.nw-row .nw-meta { font-size: 11px; }
.nw-stats { flex: 1; display: flex; flex-direction: column; }
.nw-stats dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 0 0 14px; box-shadow: 0 0 0 1px var(--line); }
.nw-stats dl div { background: var(--s2); padding: 12px 10px; }
.nw-stats dt { font: 500 10.5px var(--f-mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.nw-stats dd { margin: 6px 0 0; font: 760 19px/1.1 var(--f); color: var(--ink); font-variant-numeric: tabular-nums; }
.nw-stats p { margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.nw-rail-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font: 600 12.5px var(--f-mono); color: var(--acc-t); text-decoration: none; }
.nw-rail-link .i { width: 15px; height: 15px; }

.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nw-card { position: relative; display: flex; flex-direction: column; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--chamfer); transition: box-shadow var(--t), transform var(--t), background var(--t); }
.nw-card::before { content: ''; position: absolute; left: 0; top: 0; width: 56px; height: 3px; background: var(--cat); z-index: 2; transition: width .4s var(--ease-out); }
.nw-card:hover { box-shadow: inset 0 0 0 1px var(--line-3); background: var(--s2); transform: translateY(-3px); }
.nw-card:hover::before { width: 100%; }
.nw-card-img { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.nw-card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease-out); }
.nw-card:hover .nw-card-img img { transform: scale(1.04); }
.nw-card-read { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; font: 600 11px var(--f-mono); color: var(--ink); background: rgba(11, 12, 14, .78); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--line-2); }
.nw-card-read .i { width: 13px; height: 13px; color: var(--acc-t); }
.nw-card-body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nw-card h3 { margin: 2px 0 0; font-size: 18.5px; font-weight: 760; line-height: 1.26; letter-spacing: -.01em; text-wrap: balance; }
.nw-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; flex: 1; }
.nw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font: 500 12px var(--f-mono); color: var(--ink-3); }
.nw-more { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--f-mono); color: var(--acc-t); text-decoration: none; }
.nw-more .i { width: 14px; height: 14px; transition: transform var(--t); }
.nw-card:hover .nw-more .i { transform: translateX(3px); }

.nw-empty { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; text-align: center; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.nw-empty .i { width: 34px; height: 34px; color: var(--acc); }
.nw-empty b { font-size: 18px; color: var(--ink); }
.nw-empty .btn { margin-top: 8px; }

.nw-follow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; background: linear-gradient(90deg, rgba(var(--acc-rgb) / .12), transparent 70%), var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--chamfer); }
.nw-follow > div:nth-child(2) { flex: 1; min-width: 240px; }
.nw-follow-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: var(--acc); background: rgba(var(--acc-rgb) / .12); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb) / .3); }
.nw-follow-ic .i { width: 22px; height: 22px; }
.nw-follow b { display: block; font-size: 17px; font-weight: 760; margin-bottom: 4px; }
.nw-follow span { color: var(--ink-2); font-size: 14px; }
.nw-follow-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.nw-follow-cta .btn { display: inline-flex; align-items: center; gap: 8px; }
.nw-follow-cta .i { width: 16px; height: 16px; }

/* ================================================================ article */
.nw-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 1200; pointer-events: none; }
.nw-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc-lo), var(--acc), var(--acc-hi)); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(var(--acc-rgb) / .6); }

.nw-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg); }
.nw-head-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.3); opacity: .22; transform: scale(1.1); }
.nw-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); pointer-events: none; }
.nw-head-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 46px var(--gut, 20px) 38px; display: grid; gap: 16px; }
.nw-head h1 { margin: 4px 0 0; font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
.nw-dek { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.58; color: var(--ink-2); max-width: 780px; text-wrap: pretty; }
.nw-kick { font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.nw-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.nw-av { width: 42px; height: 42px; display: grid; place-items: center; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.nw-av img { width: 30px; height: 30px; }
.nw-av-lg { width: 60px; height: 60px; }
.nw-av-lg img { width: 42px; height: 42px; }
.nw-by { display: grid; gap: 4px; }
.nw-by b { font-size: 14px; }
.nw-by span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 500 12px var(--f-mono); color: var(--ink-3); }
.nw-updated { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font: 500 11.5px var(--f-mono); color: var(--ink-2); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); }
.nw-updated .i { width: 14px; height: 14px; color: var(--acc-t); }

.nw-hero { max-width: 1180px; margin: 30px auto 0; padding: 0 var(--gut, 20px); }
.nw-hero-frame { position: relative; }
.nw-hero-frame::before, .nw-hero-frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--acc); z-index: 1; pointer-events: none; }
.nw-hero-frame::before { left: -8px; top: -8px; border-right: 0; border-bottom: 0; }
.nw-hero-frame::after { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
.nw-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .9); }

.nw-layout { max-width: 1180px; margin: 0 auto; padding: 44px var(--gut, 20px) 56px; display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 64px; }
.nw-prose { max-width: 740px; font-size: 17px; line-height: 1.78; color: #d4d7dc; counter-reset: sec fig; }
.nw-prose > p:first-of-type { font-size: 19.5px; line-height: 1.66; color: var(--ink); }
.nw-prose > p:first-of-type::first-letter { float: left; font: 800 64px/.86 var(--f); margin: 8px 12px 0 0; color: var(--acc); }
.nw-prose p { margin: 0 0 1.2em; text-wrap: pretty; }
.nw-prose h2 { counter-increment: sec; margin: 2.3em 0 .65em; font-size: 28px; font-weight: 780; line-height: 1.18; letter-spacing: -.016em; color: var(--ink); scroll-margin-top: 118px; text-wrap: balance; }
.nw-prose h2::before { content: counter(sec, decimal-leading-zero); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 12px var(--f-mono); letter-spacing: .14em; color: var(--acc-t); }
.nw-prose h2::after { content: ''; display: block; height: 1px; margin-top: 14px; background: linear-gradient(90deg, var(--line-3), transparent 70%); }
.nw-prose h3 { margin: 1.7em 0 .45em; font-size: 20px; font-weight: 760; color: var(--ink); letter-spacing: -.01em; }
.nw-prose a { color: var(--acc-t); text-decoration: underline; text-decoration-color: rgba(var(--acc-rgb) / .4); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color var(--t); }
.nw-prose a:hover { text-decoration-color: var(--acc-t); }
.nw-prose strong { color: var(--ink); font-weight: 680; }
.nw-prose em { color: var(--ink); }
.nw-prose code { font: 500 .84em var(--f-mono); background: var(--s2); padding: .14em .42em; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--acc-hi); white-space: nowrap; }
.nw-prose ul, .nw-prose ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.nw-prose ul > li { position: relative; padding-left: 24px; margin: .45em 0; }
.nw-prose ul > li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; background: var(--acc); transform: rotate(45deg); }
.nw-prose ol:not(.nw-steps):not(.nw-timeline) { counter-reset: li; }
.nw-prose ol:not(.nw-steps):not(.nw-timeline) > li { counter-increment: li; position: relative; padding-left: 30px; margin: .45em 0; }
.nw-prose ol:not(.nw-steps):not(.nw-timeline) > li::before { content: counter(li) '.'; position: absolute; left: 0; font: 600 14px/1.9 var(--f-mono); color: var(--acc-t); }

.nw-prose blockquote { position: relative; margin: 2em 0; padding: 26px 28px 24px 64px; background: linear-gradient(100deg, rgba(var(--acc-rgb) / .08), transparent 70%), var(--s1); box-shadow: inset 3px 0 0 var(--acc), inset 0 0 0 1px var(--line); font-size: 20px; line-height: 1.55; color: var(--ink); font-weight: 520; }
.nw-prose blockquote::before { content: '\201C'; position: absolute; left: 20px; top: 6px; font: 800 64px/1 Georgia, serif; color: var(--acc); }
.nw-prose blockquote cite { display: block; margin-top: 12px; font: 500 12.5px var(--f-mono); font-style: normal; color: var(--ink-3); letter-spacing: .04em; }

.nw-fig { margin: 2.2em 0; counter-increment: fig; }
.nw-fig img { display: block; width: 100%; height: auto; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-2), 0 34px 70px -34px rgba(0, 0, 0, .9); cursor: zoom-in; transition: box-shadow var(--t), transform var(--t); }
.nw-fig img:hover { box-shadow: 0 0 0 1px rgba(var(--acc-rgb) / .55), 0 34px 70px -34px rgba(0, 0, 0, .9); }
.nw-fig img:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.nw-fig figcaption { margin-top: 12px; display: flex; gap: 12px; font: 500 12.5px/1.6 var(--f-mono); color: var(--ink-3); }
.nw-fig figcaption::before { content: 'FIG ' counter(fig, decimal-leading-zero); flex: none; height: 22px; padding: 0 7px; display: grid; place-items: center; font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--acc-ink); background: var(--acc); margin-top: -1px; }

.nw-box { margin: 1.9em 0; padding: 22px 24px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--chamfer); position: relative; font-size: 15.5px; line-height: 1.68; }
.nw-box::before { content: ''; position: absolute; left: 0; top: 0; width: 64px; height: 3px; background: var(--acc); }
.nw-box > b:first-child { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 11.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-t); }
.nw-box > b:first-child::before { content: ''; width: 6px; height: 6px; background: var(--acc); transform: rotate(45deg); }
.nw-box ul { margin: 0; }
.nw-box li { margin: .5em 0; }
.nw-box p:last-child { margin-bottom: 0; }
.nw-note { display: block; background: linear-gradient(100deg, rgba(var(--acc-rgb) / .1), transparent 70%), var(--s1); box-shadow: inset 3px 0 0 var(--acc), inset 0 0 0 1px var(--line-2); clip-path: none; }
.nw-note::before { display: none; }
.nw-note > b:first-child { display: flex; }

.nw-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); margin: 2em 0; box-shadow: 0 0 0 1px var(--line-2); }
.nw-facts div { position: relative; background: var(--s1); padding: 20px 20px 18px; }
.nw-facts div::before { content: ''; position: absolute; left: 0; top: 0; width: 28px; height: 2px; background: var(--acc); }
.nw-facts b { display: block; font: 800 30px/1 var(--f); letter-spacing: -.02em; color: var(--ink); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.nw-facts span { display: block; margin-top: 8px; font: 500 11.5px/1.4 var(--f-mono); color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }

.nw-prose .nw-timeline { position: relative; margin: 1.6em 0 1.8em; padding: 0; }
.nw-prose .nw-timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--acc), var(--line-2) 30%, var(--line-2)); }
.nw-prose .nw-timeline > li { position: relative; padding: 0 0 0 34px; margin: 0 0 1.4em; }
.nw-prose .nw-timeline > li::before { content: ''; position: absolute; left: 1px; top: 6px; width: 9px; height: 9px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--acc); transform: rotate(45deg); }
.nw-prose .nw-timeline > li:first-child::before { background: var(--acc); box-shadow: 0 0 12px rgba(var(--acc-rgb) / .6); }
.nw-timeline time { display: block; margin-bottom: 4px; font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc-t); }

.nw-table-wrap { overflow-x: auto; margin: 1.5em 0 1.9em; box-shadow: 0 0 0 1px var(--line-2); }
.nw-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.nw-table th, .nw-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); background: transparent; }
.nw-table thead th { font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--s2); }
.nw-table thead th:not(:first-child), .nw-table td:not(:first-child) { text-align: center; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.nw-table thead th:last-child { color: var(--acc-t); }
.nw-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.nw-table tbody tr:hover td { background: rgba(var(--acc-rgb) / .05); }
.nw-table td:first-child { color: var(--ink); }
.nw-table tbody tr:last-child td { border-bottom: 0; }

.nw-prose .nw-steps { counter-reset: s; padding: 0; margin: 1.4em 0 1.6em; }
.nw-prose .nw-steps > li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; margin: 0 0 8px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.6; }
.nw-prose .nw-steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 14px; top: 14px; width: 34px; height: 28px; display: grid; place-items: center; font: 700 12px var(--f-mono); color: var(--acc-ink); background: var(--acc); clip-path: var(--chamfer-br); --cut-s: 6px; }

.nw-endcta { margin: 2.6em 0 0; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: radial-gradient(ellipse 70% 140% at 100% 50%, rgba(var(--acc-rgb) / .2), transparent 60%), var(--s1); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb) / .32); clip-path: var(--chamfer); }
.nw-endcta b { display: block; font-size: 20px; font-weight: 780; color: var(--ink); margin-bottom: 4px; }
.nw-endcta span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.nw-prose .nw-endcta a.btn { display: inline-flex; align-items: center; gap: 8px; color: var(--acc-ink); text-decoration: none; height: 46px; padding: 0 20px; font-size: 14px; }
.nw-endcta .btn .i { width: 16px; height: 16px; }

.nw-disclaimer { margin-top: 1.8em !important; color: var(--ink-3); font-size: 13px; line-height: 1.55; }

.nw-toc-m { display: none; margin: 0 0 28px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); }
.nw-toc-m summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font: 600 14px var(--f); color: var(--ink); }
.nw-toc-m summary::-webkit-details-marker { display: none; }
.nw-toc-m summary span { margin-left: auto; font: 500 11.5px var(--f-mono); color: var(--ink-3); }
.nw-toc-m summary .i { width: 18px; height: 18px; color: var(--acc); }
.nw-toc-m summary .i:last-child { color: var(--ink-3); transition: transform var(--t); }
.nw-toc-m[open] summary .i:last-child { transform: rotate(180deg); }
.nw-toc-m nav { padding: 0 8px 10px; border-top: 1px solid var(--line); }

.nw-foot { margin-top: 2.6em; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.nw-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-tags span { font: 500 12px var(--f-mono); color: var(--ink-2); padding: 6px 10px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.nw-share { display: flex; gap: 8px; flex-wrap: wrap; }
.nw-share.is-col { flex-direction: column; align-items: stretch; }
.nw-sh { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; font: 600 12.5px var(--f); color: var(--ink-2) !important; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); border: 0; cursor: pointer; text-decoration: none !important; transition: background var(--t), color var(--t); }
.nw-sh .i { width: 15px; height: 15px; }
.nw-sh:hover { color: var(--ink) !important; background: var(--s2); }
.nw-sh.is-done { color: var(--ok) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }

.nw-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 22px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); }
.nw-author-k { display: block; font: 600 10.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.nw-author b { display: block; margin: 4px 0 6px; font-size: 17px; color: var(--ink); }
.nw-author p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.nw-author-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nw-prose .nw-author-links a { font: 600 12.5px var(--f-mono); text-decoration: none; }

.nw-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.nw-pg { display: grid; gap: 8px; padding: 18px 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none !important; transition: background var(--t), box-shadow var(--t); position: relative; }
.nw-pg::before { content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 2px; background: var(--cat); }
.nw-pg:hover { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-3); }
.nw-pg span { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nw-pg span .i { width: 14px; height: 14px; }
.nw-pg b { font-size: 15px; line-height: 1.35; color: var(--ink); font-weight: 700; }
.nw-pg-next { text-align: right; }
.nw-pg-next span { justify-content: flex-end; }
.nw-pg-next::before { left: auto; right: 0; }

.nw-side-in { position: sticky; top: 118px; display: grid; gap: 26px; }
.nw-toc b, .nw-side-share b { display: block; margin-bottom: 12px; font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.nw-toc a, .nw-toc-m a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 10px 8px 12px; border-left: 2px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.4; text-decoration: none; transition: color var(--t), border-color var(--t), background var(--t); }
.nw-toc a i, .nw-toc-m a i { font: 600 11px/1.75 var(--f-mono); font-style: normal; color: var(--ink-4); transition: color var(--t); }
.nw-toc a:hover, .nw-toc-m a:hover { color: var(--ink); background: rgba(255, 255, 255, .02); }
.nw-toc a.is-on, .nw-toc-m a.is-on { color: var(--ink); border-left-color: var(--acc); background: linear-gradient(90deg, rgba(var(--acc-rgb) / .1), transparent); }
.nw-toc a.is-on i, .nw-toc-m a.is-on i { color: var(--acc-t); }
.nw-toc-m a { border-left: 0; padding-left: 8px; }
.nw-toc-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; background: linear-gradient(var(--s3), var(--s3)) 0 50% / calc(100% - 46px) 3px no-repeat; }
.nw-toc-progress i { flex: 1; height: 3px; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; }
.nw-toc-progress span { width: 36px; text-align: right; font: 600 11px var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nw-back { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--f-mono); color: var(--ink-3); text-decoration: none; }
.nw-back:hover { color: var(--acc-t); }
.nw-back .i { width: 14px; height: 14px; }
.nw-related { padding-bottom: 64px; }

/* lightbox */
.nw-lb { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 64px 24px 24px; background: rgba(6, 7, 9, .9); backdrop-filter: blur(8px); opacity: 0; transition: opacity .18s ease; cursor: zoom-out; }
.nw-lb.is-on { opacity: 1; }
.nw-lb[hidden] { display: none; }
.nw-lb figure { margin: 0; max-width: min(1500px, 100%); display: grid; gap: 12px; transform: scale(.97); transition: transform .25s var(--ease-out); cursor: default; }
.nw-lb.is-on figure { transform: none; }
.nw-lb img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; margin: 0 auto; box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px rgba(0, 0, 0, .8); }
.nw-lb figcaption { text-align: center; font: 500 12.5px/1.5 var(--f-mono); color: var(--ink-2); }
.nw-lb-x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--s2); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.nw-lb-x:hover { background: var(--s3); }
.nw-lb-x .i { width: 20px; height: 20px; }
html.nw-lb-open { overflow: hidden; }

/* home strip */
.nw-home .nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-home-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font: 600 13px var(--f-mono); color: var(--acc-t); text-decoration: none; }
.nw-home-all .i { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  .nw-banner-mark > i, .nw-live { animation: none; }
  .nw-card, .nw-card img, .nw-feature img, .nw-row img { transition: none; }
}
@media (max-width: 1120px) {
  .nw-top { grid-template-columns: minmax(0, 1fr); }
  .nw-rail { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nw-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .nw-side { display: none; }
  .nw-prose { width: 100%; max-width: 760px; margin: 0 auto; }
  .nw-toc-m { display: block; }
}
@media (max-width: 900px) {
  .nw-grid, .nw-home .nw-grid { grid-template-columns: 1fr 1fr; }
  .nw-banner-mark { display: none; }
}
@media (max-width: 680px) {
  .nw-rail { grid-template-columns: 1fr; }
  .nw-grid, .nw-home .nw-grid { grid-template-columns: 1fr; }
  .nw-feature-body { padding: 20px; }
  .nw-feature-foot .nw-cta { width: 100%; justify-content: center; }
  .nw-facts { grid-template-columns: 1fr; }
  .nw-facts b { font-size: 26px; }
  .nw-prose { font-size: 16.5px; }
  .nw-prose > p:first-of-type { font-size: 18px; }
  .nw-prose > p:first-of-type::first-letter { font-size: 54px; }
  .nw-prose h2 { font-size: 24px; }
  .nw-prose blockquote { padding: 22px 18px 20px 50px; font-size: 18px; }
  .nw-prose blockquote::before { left: 12px; font-size: 52px; }
  .nw-head-inner { padding-top: 30px; }
  .nw-updated { margin-left: 0; }
  .nw-hero { margin-top: 22px; }
  .nw-hero-frame::before, .nw-hero-frame::after { display: none; }
  .nw-pager { grid-template-columns: 1fr; }
  .nw-pg-next { text-align: left; }
  .nw-pg-next span { justify-content: flex-start; }
  .nw-author { flex-direction: column; }
  .nw-filters .nw-rss { margin-left: 0; }
  .nw-banner-in { padding: 32px var(--gut, 16px) 36px; }
  .nw-fig figcaption { flex-direction: column; gap: 8px; }
  .nw-fig figcaption::before { align-self: flex-start; }
  .nw-prose code { white-space: normal; word-break: break-word; }
}
.nw-net { display: grid; gap: 2px; }
.nw-net .nw-rail-h { margin-bottom: 8px; }
.nw-net-a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 9px 8px; margin: 0 -8px; text-decoration: none; color: var(--ink); transition: background var(--t); }
.nw-net-a:hover { background: var(--s2); }
.nw-net-a img { width: 28px; height: 28px; object-fit: contain; }
.nw-net-a span { display: grid; gap: 2px; min-width: 0; }
.nw-net-a b { font-size: 13.5px; font-weight: 680; }
.nw-net-a small { font: 500 11px var(--f-mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-net-a .i { width: 15px; height: 15px; color: var(--ink-3); transition: color var(--t), transform var(--t); }
.nw-net-a:hover .i { color: var(--acc-t); transform: translate(2px, -2px); }
.nw-stats { flex: none; }
@media (max-width: 1120px) { .nw-net { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } .nw-net .nw-rail-h { grid-column: 1 / -1; } }
@media (max-width: 680px) { .nw-net { grid-template-columns: 1fr; } }
.nw-lb { z-index: 100000; }
.nw-progress { z-index: 99999; }

/* ---- code samples (tabs + copy, built by news.js) ---- */
.nw-code { margin: 1.6em 0 1.9em; background: #0a0b0d; box-shadow: 0 0 0 1px var(--line-2), 0 26px 50px -30px rgba(0, 0, 0, .9); position: relative; }
.nw-code::before { content: ''; position: absolute; left: 0; top: 0; width: 44px; height: 2px; background: var(--acc); z-index: 1; }
.nw-code-h { display: flex; align-items: center; gap: 2px; padding: 0 6px 0 4px; height: 40px; background: var(--s1); box-shadow: inset 0 -1px 0 var(--line-2); }
.nw-code-h button { appearance: none; border: 0; background: none; color: var(--ink-3); font: 600 11.5px var(--f-mono); letter-spacing: .06em; height: 40px; padding: 0 12px; cursor: pointer; position: relative; transition: color var(--t); }
.nw-code-h button:hover { color: var(--ink); }
.nw-code-h button[aria-selected="true"] { color: var(--ink); }
.nw-code-h button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--acc); }
.nw-code-h .nw-code-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.nw-code-h .nw-code-copy:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.nw-code-h .nw-code-copy.is-done { color: #5fd38d; box-shadow: inset 0 0 0 1px rgba(95, 211, 141, .45); }
.nw-code-h .nw-code-copy svg, .nw-code-h .nw-code-copy .material-icons { width: 14px; height: 14px; font-size: 14px; }
.nw-code-file { font: 500 11.5px var(--f-mono); color: var(--ink-3); padding: 0 10px; letter-spacing: .04em; }
.nw-code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; font: 500 13.5px/1.7 var(--f-mono); color: #d7dbe2; tab-size: 2; scrollbar-width: thin; }
.nw-code pre[data-lang]::before { content: attr(data-lang); display: block; margin-bottom: 8px; font: 600 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nw-code.has-head pre::before { display: none; }
.nw-code.is-tabbed pre[hidden] { display: none; }
.nw-prose .nw-code code { font: inherit; background: none; padding: 0; box-shadow: none; color: inherit; white-space: pre; }
.nw-code .k { color: #ff8f6b; } .nw-code .s { color: #9fdc8a; } .nw-code .n { color: #f5c46b; } .nw-code .c { color: #6c727d; font-style: italic; } .nw-code .p { color: #7fb4ff; } .nw-code .f { color: #c7a6ff; }

/* ---- data charts (pure CSS bars) ---- */
.nw-chart { margin: 2.2em 0; counter-increment: fig; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); padding: 20px 22px 18px; position: relative; }
.nw-chart::before { content: ''; position: absolute; left: 0; top: 0; width: 64px; height: 3px; background: var(--acc); }
.nw-chart-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; }
.nw-chart-h::before { content: 'FIG ' counter(fig, decimal-leading-zero); align-self: center; height: 22px; padding: 0 7px; display: grid; place-items: center; font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--acc-ink); background: var(--acc); }
.nw-chart-h b { font-size: 17px; font-weight: 740; color: var(--ink); letter-spacing: -.01em; }
.nw-chart-h span { flex-basis: 100%; font: 500 12px/1.5 var(--f-mono); color: var(--ink-3); letter-spacing: .03em; }
.nw-chart-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 36px; }
.nw-chart-2 > h4 { margin: 0 0 4px; font: 600 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-t); }
.nw-bars { display: grid; gap: 7px; }
.nw-bar { display: grid; grid-template-columns: 118px minmax(0, 1fr) 58px; align-items: center; gap: 12px; font-size: 14px; line-height: 1.2; }
.nw-bar > span { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 560; }
.nw-bar > span small { display: block; margin-top: 2px; font: 500 11px var(--f-mono); color: var(--ink-3); font-weight: 500; }
.nw-bar > i { position: relative; height: 12px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.nw-bar > i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) / var(--max, 100) * 100%); background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--acc)) 55%, transparent), var(--c, var(--acc))); box-shadow: 0 0 14px -4px var(--c, var(--acc)); }
.nw-bar > b { font: 600 13px var(--f-mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.nw-bar.is-top > b { color: var(--c, var(--acc-t)); }
.nw-bars-tall .nw-bar > i { height: 20px; }
.nw-chart-src { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); font: 500 11.5px/1.6 var(--f-mono); color: var(--ink-3); }
.nw-prose .nw-chart-src { margin-bottom: 0; }
@media (max-width: 680px) {
  .nw-chart { padding: 16px 14px 14px; }
  .nw-chart-2 { grid-template-columns: 1fr; gap: 22px; }
  .nw-bar { grid-template-columns: 92px minmax(0, 1fr) 50px; gap: 8px; font-size: 13px; }
  .nw-code pre { font-size: 12.5px; padding: 14px; }
}
/* Wide children (code, charts) scroll or shrink inside the column instead of widening it. */
.nw-prose { min-width: 0; }
.nw-code, .nw-chart, .nw-bars, .nw-bar > span { min-width: 0; }
@media (max-width: 680px) { .nw-chart-2 { grid-template-columns: minmax(0, 1fr); } }
.nw-endcta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.nw-prose .nw-endcta a.btn:not(.btn-primary) { color: var(--ink); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-3); }
.nw-prose .nw-endcta a.btn:not(.btn-primary):hover { box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb) / .6); }

/* 2026-11-26 fixes: featured box as tall as the rail (no empty space), rows that never overflow */
@media (min-width: 1101px) {
  .nw-top { align-items: stretch; }
  .nw-feature-img { flex: 1 1 auto; min-height: 260px; }
  .nw-feature-img img { height: 100%; aspect-ratio: auto; position: absolute; inset: 0; }
}
.nw-feature-body { padding: 22px 28px 24px; gap: 12px; }
.nw-feature-foot { padding-top: 16px; }
.nw-row .nw-meta { white-space: normal; flex-wrap: wrap; row-gap: 4px; }
.nw-row-body b { overflow-wrap: anywhere; }
.nw-rail-box { min-width: 0; }
.nw-netstrip { margin-top: 28px; padding: 18px 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.nw-netstrip::before { content: ''; position: absolute; left: 0; top: 0; width: 40px; height: 2px; background: var(--acc); }
.nw-netstrip .nw-rail-h { margin-bottom: 10px; }
.nw-netstrip-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 20px; }
.nw-netstrip .nw-net-a { margin: 0; }
@media (max-width: 1100px) { .nw-netstrip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nw-netstrip-in { grid-template-columns: minmax(0, 1fr); } .nw-netstrip { padding: 16px; } }
@media (min-width: 1101px) { .nw-feature-img img { object-position: 50% 0; } }
