/* app_news: the archive listing and the reading page.
   Ported from the prototype (styles.css L1414-1509 and L2742-2749 for the listing,
   news/pyrevit-forms.html's own style block L26-284 for the reading page), 2026-09-09. Every value
   that was a hex there is a brand token here; every class carries the app's nw- prefix. The rows and
   the cards are .card members, so they inherit the shell's glass and its tracing hover. */

/* ==================== the archive (155 issues, text first) ====================
   Zero per issue thumbnails exist in the archive, so nothing here reserves an image slot. */
.nw-hero{position:relative;max-width:var(--hero-w)}
.nw-by{display:inline-block;font:700 1.25rem/1 var(--fh);color:var(--acc2);
  letter-spacing:0;margin-left:12px;transform:rotate(-4deg) translateY(-2px)}
.nw-stat{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:26px}
.nw-stat span{display:inline-flex;align-items:center;gap:9px;font:500 11px/1 var(--fm);
  letter-spacing:.16em;color:var(--faint)}
.nw-stat b{font-weight:600;color:var(--dim);font-variant-numeric:tabular-nums}
.nw-sq{position:relative;width:10px;height:10px;border-radius:3px;background:var(--sq-gray);
  flex:none;display:inline-block;transition:background .16s}
.nw-join{margin-top:30px}

/* the section head: the title on the left, the search and the count opposite it */
.nw-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:34px}
.nw-head h2{margin-bottom:10px}
.nw-head .sec-sub{margin:0}
.nw-bar{display:flex;align-items:center;gap:14px;flex:none}
.nw-search{position:relative;display:flex;align-items:center}
.nw-search svg{position:absolute;left:12px;width:15px;height:15px;stroke:var(--faint);
  fill:none;stroke-width:1.7;pointer-events:none}
.nw-search input{width:250px;background:var(--s1);border:1px solid var(--hl2);border-radius:var(--rb);
  color:var(--ink);font:400 13px/1 var(--fd);padding:11px 12px 11px 34px;outline:none;
  transition:border-color .16s}
.nw-search input::placeholder{color:var(--faint)}
.nw-search input:focus{border-color:var(--hl3)}
.nw-search input::-webkit-search-cancel-button{filter:grayscale(1) opacity(.5)}
.nw-count{font:500 11px/1 var(--fm);color:var(--faint);letter-spacing:.08em;
  white-space:nowrap;font-variant-numeric:tabular-nums}

/* filter chips: OUTLINE only, never orange filled. The active one wears the locked chip treatment. */
.nw-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:26px}
.nw-tag{display:inline-flex;align-items:center;gap:7px;background:transparent;
  border:1px solid var(--hl2);border-radius:6px;color:var(--dim);cursor:pointer;text-decoration:none;
  font:500 10px/1 var(--fm);letter-spacing:.14em;text-transform:uppercase;padding:7px 9px;
  transition:border-color .16s,color .16s,background .16s}
.nw-tag span{color:var(--faint);font-variant-numeric:tabular-nums}
a.nw-tag:hover{border-color:var(--hl3);color:var(--ink)}
a.nw-tag.act{color:var(--ink);border-color:var(--hl3);background:var(--s3)}
a.nw-tag.act span{color:var(--acc2)}

/* year divider: it makes the real seven month gap between Sep 2025 and Apr 2026 read as a pause
   instead of as missing data */
.nw-year{display:flex;align-items:center;gap:14px;margin:30px 0 12px}
.nw-year:first-child{margin-top:0}
.nw-year b{font:600 12px/1 var(--fm);letter-spacing:.2em;color:var(--dim);font-variant-numeric:tabular-nums}
.nw-year i{flex:1;height:1px;background:var(--hl1)}
.nw-year span{font:500 10px/1 var(--fm);letter-spacing:.16em;color:var(--faint);font-variant-numeric:tabular-nums}

/* the pill of an issue that is a real page here: the list is the only place it is said now (0128) */
.nw-here{flex:none;color:var(--acc);border-color:rgb(from var(--acc) r g b / .4);background:var(--s1)}

.nw-list{display:flex;flex-direction:column;gap:8px}
a.nw-row{display:flex;align-items:flex-start;gap:18px;padding:15px 18px;text-decoration:none;color:inherit}
.nw-no{flex:none;width:46px;padding-top:1px;font:700 17px/1.2 var(--fm);font-variant-numeric:tabular-nums;
  color:var(--faint);text-align:right;transition:color .16s}
.nw-row:hover .nw-no{color:var(--acc)}
.nw-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.nw-th{display:flex;align-items:baseline;gap:2px;min-width:0}
.nw-emoji{flex:none;width:22px;font-size:13px;line-height:1.45} /* a fixed slot: titles align down the list */
.nw-t{font:500 14.5px/1.45 var(--fd);color:var(--ink);min-width:0;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}
.nw-x{font:400 12.5px/1.5 var(--fd);color:var(--dim);padding-left:22px;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}
.nw-rmeta{flex:none;display:flex;align-items:center;gap:14px;padding-top:2px}
.nw-rtags{display:flex;gap:5px}
.nw-rmeta .nw-tag{cursor:default;padding:5px 7px;letter-spacing:.1em}
/* the tilde is load bearing: the reading time is estimated by us, the live site publishes none */
.nw-min{width:56px;text-align:right;font:400 11px/1 var(--fm);color:var(--faint);font-variant-numeric:tabular-nums}
.nw-date{width:88px;text-align:right;font:400 11px/1 var(--fm);color:var(--faint)}
.nw-empty{margin-top:26px;font:400 .95rem/1.6 var(--fd);color:var(--dim)}

/* the envelope beside the hero form */
.nw-env{position:absolute;left:calc(100% + 28px);bottom:-6px;width:90px;color:var(--faint);
  transform:rotate(-7deg);animation:nwFloat 5.5s ease-in-out infinite}
.nw-env svg{display:block;width:100%;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}
.nw-env .ne-acc{stroke:var(--acc)}
.nw-env .ne-soft{stroke:var(--hl3)}
@keyframes nwFloat{0%,100%{transform:rotate(-7deg) translateY(0)}50%{transform:rotate(-7deg) translateY(-6px)}}
.nw-join{position:relative}

@container page (max-width:1000px){
  .nw-head{flex-direction:column;align-items:stretch;gap:16px}
  .nw-search input{width:100%}
  .nw-bar{width:100%}
}
@container page (max-width:900px){
  .nw-rmeta{gap:10px}
  .nw-rtags,.nw-date{display:none}
}
@container page (max-width:760px){.nw-env{display:none}}
@container page (max-width:640px){
  .nw-no{width:34px;font-size:14px}
  a.nw-row{gap:12px;padding:13px 14px}
  .nw-x{display:none}
}

/* ==================== the reading page ====================
   Two windows in the prototype, one framed column here: the article and the dock beside it. */
.nw-prog{position:sticky;top:0;z-index:3;height:2px;margin:0 -1px;
  background:rgba(255,255,255,.05);border-radius:16px 16px 0 0;overflow:hidden}
.nw-prog i{display:block;height:100%;background:var(--acc);transform:scaleX(0);transform-origin:left}
.nw-stage{display:flex;align-items:flex-start;gap:clamp(14px,1.6vw,22px);
  padding:0 clamp(18px,4cqw,48px) 90px}
.nw-art{flex:1 1 800px;min-width:0;border-top:none;padding-top:34px}
.nw-dock{flex:none;width:256px;max-width:256px;padding:20px 18px;margin-top:34px;
  border:1px solid var(--hl2);border-radius:var(--rc);background:var(--s1);
  position:sticky;top:18px;max-height:calc(100vh - 190px);overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:var(--s3) transparent}

.nw-kick{text-align:center;padding-bottom:34px;border-bottom:1px solid var(--hl1);margin-bottom:40px}
.nw-kicker{font:500 11px/1 var(--fm);letter-spacing:.2em;color:var(--faint);text-transform:uppercase}
.nw-kick h1{margin:18px auto 0;max-width:22ch}
.nw-badges{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:20px}

/* the contents rail: one square per section, the current one orange */
.nw-toc{display:flex;flex-direction:column;gap:2px}
.nw-toc b{font:600 10px/1 var(--fm);letter-spacing:.2em;color:var(--faint);margin-bottom:10px}
.nw-toc a{display:flex;align-items:center;gap:10px;padding:6px 0;text-decoration:none;
  font:400 12px/1.35 var(--fd);color:var(--dim);transition:color .16s}
.nw-toc a:hover{color:var(--dim)}
.nw-toc a.act{color:var(--ink)}
.nw-toc a.act .nw-sq{background:var(--sq-orange)}

/* prose: a 68ch measure. The blocks themselves are the editor's, painted by app_editor/doc.css for
   every reader since 0116; what is left here is the issue's own type on top of them. */
.nw-body{display:grid;grid-template-columns:1fr min(68ch,660px) 1fr}
.nw-body > *{grid-column:2;min-width:0;margin-top:1.25em}
.nw-body > :first-child{margin-top:0}
.nw-body p{font:400 1.05rem/1.7 var(--fd);color:var(--ink);max-width:none}
.nw-body a{color:var(--acc);text-decoration:underline;text-underline-offset:3px}
.nw-body a:hover{color:var(--acc2)}
.nw-body h2{font:600 1.5rem/1.25 var(--fd);letter-spacing:-.02em;color:var(--ink);
  margin:2.4em 0 .8em;scroll-margin-top:24px}
.nw-body ul{list-style:none;padding:0;margin:0}
.nw-body li{position:relative;padding-left:22px;font:400 1.05rem/1.7 var(--fd);color:var(--ink);margin-bottom:.4em}
.nw-body li > p{margin:0;font:inherit}
/* the orange square is a bullet's; a numbered item keeps its number, in the accent (0631) */
.nw-body ul > li::before{content:"";position:absolute;left:2px;top:.72em;width:6px;height:6px;
  border-radius:2px;background:var(--acc)}
.nw-body ol{margin:0;padding-left:1.3em}
.nw-body ol > li{padding-left:6px}
.nw-body ol > li::marker{color:var(--acc)}
.nw-body code{font:400 .88em var(--fm);color:var(--acc2);background:var(--s1);
  border:1px solid var(--hl1);border-radius:5px;padding:1px 5px}

/* end of the issue: the sign off, the neighbours, the related rows. No mid article interrupt. */
.nw-end{max-width:min(860px,100%);margin:56px auto 0;padding-top:34px;border-top:1px solid var(--hl1)}
.nw-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:34px}
.nw-nav a{display:flex;flex-direction:column;gap:7px;padding:16px 18px;text-decoration:none;color:inherit}
.nw-nav a.nw-next{text-align:right;align-items:flex-end}
.nw-nav em{font-style:normal;font:500 10px/1 var(--fm);letter-spacing:.18em;color:var(--faint);text-transform:uppercase}
.nw-nav b{font:500 .92rem/1.45 var(--fd);color:var(--dim)}
.nw-nav a:hover b{color:var(--ink)}
.nw-more{margin-top:34px}
.nw-more > b{display:block;font:600 10px/1 var(--fm);letter-spacing:.22em;color:var(--faint);margin-bottom:14px}
a.nw-mrow{display:flex;align-items:center;gap:16px;padding:13px 16px;text-decoration:none;color:inherit;
  margin-bottom:8px}
.nw-mrow i{flex:none;width:40px;font:700 15px/1 var(--fm);font-variant-numeric:tabular-nums;
  color:var(--faint);font-style:normal;text-align:right}
.nw-mrow:hover i{color:var(--acc)}
.nw-mrow span{flex:1;min-width:0;font:500 13.5px/1.4 var(--fd);color:var(--dim);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nw-mrow:hover span{color:var(--ink)}
.nw-mrow em{flex:none;font-style:normal;font:400 11px/1 var(--fm);color:var(--faint)}

@container page (max-width:960px){
  /* no dock: a table of contents that cannot sit beside the text is just a second list to scroll
     past, and the dock holds nothing else since its opt-in went (0619) */
  .nw-dock{display:none}
}
@container page (max-width:640px){
  .nw-nav{grid-template-columns:minmax(0,1fr)}
  .nw-nav a.nw-next{text-align:left;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .nw-prog i,.nw-sq{transition:none}
  .nw-env{animation:none}
}
