/* CROWD — "Stats for nerds" on the product page (changes/coffee-stats; loaded after style.css and theme.css; nerds-v4: also on the
   pages with the quick-add pop-up, for the short view inside it — no Compare dialog any more). Uses the site's tokens (--paper --ink --mist --kraft --muted --line, theme.css --raised) so light, dark and the
   system theme follow the site. No source links, no "i" buttons: the short set, then "Read more" opens in place. */
.ns,.pd-notes{--ns-line2:color-mix(in srgb,var(--ink) 24%,transparent);--ns-track:color-mix(in srgb,var(--ink) 10%,transparent);
  --ns-hatch:color-mix(in srgb,var(--ink) 45%,transparent);--ns-sheet:var(--raised,var(--paper))}
.ns{display:grid;gap:12px;margin-top:8px;padding:18px 18px 16px;border-radius:18px;background:var(--mist);scroll-margin-top:84px;min-width:0}
.ns h2{margin:0;font-size:clamp(19px,2.2vw,24px);font-weight:800;line-height:1.05}
html[lang="ar"] .ns h2{font-weight:700;line-height:1.3}
.ns-intro{margin:-4px 0 0;font-size:13px;color:var(--muted);line-height:1.45}
.ns .num{font-family:var(--f-mono);font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
/* rows: label / value; phones stack them */
.ns-kv{margin:0;display:grid}
.ns-kv>div{display:grid;grid-template-columns:minmax(96px,34%) minmax(0,1fr);gap:4px 14px;align-items:start;padding:9px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.45}
.ns-kv>div:last-child{border-bottom:1px solid var(--line)}
.ns-kv dt{color:var(--muted)}
.ns-kv dd{margin:0;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;min-width:0}
.ns-kv dd .v{font-weight:600;min-width:0;overflow-wrap:anywhere}
.ns-kv .ns-wide dd .v{font-weight:500}
.ns-kv small{color:var(--muted);font-size:12px;font-weight:400}
.ns-spec{flex-basis:100%}
@media(max-width:560px){.ns-kv>div{grid-template-columns:minmax(0,1fr);gap:2px}.ns-kv dt{font-size:12.5px}}
/* "typical": hatched square + word (never colour alone) */
.ns-typ{font-size:12px;color:var(--muted);white-space:nowrap;font-weight:400}
.ns-typ::before{content:"";display:inline-block;width:9px;height:9px;margin-inline-end:5px;border:1px solid var(--ns-hatch);background:repeating-linear-gradient(-45deg,var(--ns-hatch) 0 1.5px,transparent 1.5px 4px);vertical-align:-1px}
.pd-notes .ns-typ{margin-inline-start:4px}
/* Read more */
.ns-more-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:99px;border:1px solid var(--ink);
  background:transparent;color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer;justify-self:start}
.ns-more-btn svg{width:16px;height:16px;transition:transform .2s}
.ns-more-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.ns-more-btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.ns-more{overflow:hidden;display:grid;gap:0;min-width:0}
.ns-more[hidden]{display:none}
.ns-sec{padding:16px 0 4px;border-top:1px solid var(--ns-line2);min-width:0}
.ns-sec:first-child{border-top:0;padding-top:2px}
.ns-sec h3{margin:0 0 10px;font-size:15px;font-weight:800}
html[lang="ar"] .ns-sec h3{font-weight:700}
.ns-note,.ns-legend{margin:10px 0 0;font-size:12.5px;color:var(--muted);line-height:1.45}
.ns-sub{margin:10px 0 6px;font-size:13px;font-weight:700}
.ns-line{margin:0 0 6px;font-size:13.5px}
.ns-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.ns-chips i{font-style:normal;background:var(--kraft);color:#1b150b;border-radius:99px;padding:4px 11px;font-size:13px}
.ns-steps{margin:0;padding-inline-start:18px;display:grid;gap:3px;font-weight:400}
/* brew recipes */
.ns-brew{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ns-brew li{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:var(--ns-sheet);font-size:13.5px}
.ns-brew small{color:var(--muted)}
.ns-drivers,.ns-love{list-style:none;margin:8px 0 0;padding:0;display:grid}
.ns-drivers li,.ns-love li{padding:10px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.45}
.ns-drivers b{display:block;font-size:14px}
.ns-drivers p{margin:3px 0 0;font-size:13px;color:var(--muted)}
/* the "Stats for nerds →" link of the old dialog is replaced by the section itself on this page */
.pd-info>.nerd-link{display:none}
/* nerds-v4: the short view inside the quick-add pop-up (#qv): the button opens it in place, "See more" goes to the coffee's page */
.qv-nerd{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:-14px;margin-bottom:-10px}
.qv-nerd .ns-chev{width:14px;height:14px;flex:none;transition:transform .2s}
.qv-nerd[aria-expanded="true"] .ns-chev{transform:rotate(180deg)}
.qv-nerd[aria-busy="true"]{opacity:.6;cursor:progress}
.qv-nerd:focus-visible,.ns-qv-more:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
.ns-qv{gap:8px;margin-top:0;padding:4px 14px 10px;border-radius:14px}
.ns-qv .ns-kv>div{padding:8px 0;font-size:13.5px}
.ns-qv .ns-kv>div:first-child{border-top:0}
.ns-qv .ns-kv>div:last-child{border-bottom:1px solid var(--line)}
.ns-qv .ns-chips i{font-size:12.5px;padding:3px 10px}
.ns-qv-more{display:inline-flex;align-items:center;min-height:44px;justify-self:start;padding:0}
@media(max-width:560px){.ns-qv .ns-kv>div{grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:4px 12px}}
@media (prefers-reduced-motion:reduce){.ns-more-btn svg,.qv-nerd .ns-chev{transition:none}}

/* CROWD's own cupping, only when staff have filled in a real session: one number and words, never bars */
.ns-cupbox{margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--ns-sheet)}
.ns-cupbox h4{margin:0 0 6px;font-size:14px;font-weight:800}
.ns-cup{margin:0 0 6px;font-size:14px}
