
.ex-item{position:relative;padding:72px 0}
.ex-head{display:flex;gap:24px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;margin-bottom:22px}
.ex-head-t{max-width:760px}
.ex-head h1{margin:0 0 14px}
.ex-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.ex-head .ex-crumbs{margin-bottom:10px}
.ex-crumbs a{color:inherit;text-decoration:none}
.ex-crumbs a:hover{color:var(--accent-ink);text-decoration:underline}
.ex-crumbs span{color:var(--muted);font-weight:500}
.ex-scn{color:var(--text-2);margin:0 0 12px;font-size:1.05rem}
.ex-meta{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:0;color:var(--muted);font-size:.9rem}
.ex-acts{display:flex;gap:10px;flex-wrap:wrap}
.ex-acts .btn{font-size:.93rem;padding:10px 16px}
.ex-fig{margin:0}
.ex-fig .paper-in svg{display:block;width:100%;height:auto;max-width:calc(var(--nw) * 1px);margin:0 auto}
.ex-fig svg [data-source-line]{transition:opacity .25s ease}
.ex-fig.hl-on svg [data-source-line]{opacity:.14}
.ex-fig.hl-on svg [data-source-line].hl{opacity:1}
.ex-pts-h{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;font-size:1.1rem;letter-spacing:-.01em;margin:30px 0 12px}
.ex-pts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:10px}
.ex-pt{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;height:100%;width:100%;cursor:pointer;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;transition:border-color .15s,box-shadow .15s}
.ex-pt:hover,.ex-pt:focus-visible,.ex-pt[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}
.ex-pt-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--accent-soft);
  color:var(--accent);font-weight:700;font-size:.82rem}
.ex-pt-h{font-weight:700;color:var(--text)}
.ex-pt-t{color:var(--text-2);font-size:.95rem;line-height:1.5}
.ex-pt-l{margin-top:auto;padding-top:4px;font-family:var(--mono);font-size:.76rem;color:var(--muted)}
.ex-body{display:grid;grid-template-columns:minmax(290px,340px) minmax(0,1fr);gap:28px;align-items:start}
/* sticky under the 64 px header (its text stops 84 px from the top); a column taller than the screen scrolls inside
   itself, so note 3 can be read. The 4 px padding, taken back by the margin, keeps the notes' focus ring inside it. */
.ex-notes{position:sticky;top:80px;margin:-4px;padding:4px;max-height:calc(100vh - 96px);overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
.ex-body .ex-pts-h{margin-top:0}
.ex-body.wide{display:flex;flex-direction:column-reverse;align-items:stretch}
.ex-body.wide .ex-notes{position:static;margin:4px 0 0;padding:0;max-height:none;overflow:visible}
.ex-body.wide .ex-pts-h{margin-top:30px}
.ex-body.wide .ex-pts{grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:1000px){ .ex-body{display:flex;flex-direction:column-reverse;align-items:stretch}
  .ex-notes{position:static;margin:4px 0 0;padding:0;max-height:none;overflow:visible}
  .ex-body .ex-pts-h{margin-top:30px} }
@media print{ .ex-notes{position:static;margin:4px 0 0;padding:0;max-height:none;overflow:visible} }
@media (max-width:900px){ .ex-body.wide .ex-pts{grid-template-columns:1fr} }
.ex-src{margin-top:22px}
.ex-src summary{cursor:pointer;font-weight:650;padding:8px 0}
.ex-src .code .ln.hit{background:rgba(96,165,250,.22)}
/* previous, back to Examples, next (the cards as on the docs pages) */
.prev-next{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:stretch;margin:56px 0 0}
.pn{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);
  text-decoration:none;color:var(--text-2)}
.pn.prev{grid-column:1}
.pn.next{grid-column:3;text-align:right}
.pn:hover{border-color:var(--accent);color:var(--text-2)}
.pn-k{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pn b{color:var(--text)}
.pn span:last-child:not(.pn-k){font-size:.86rem}
.pn-all{grid-column:2;grid-row:1;align-self:center;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;font-weight:600;
  text-decoration:none;white-space:nowrap}
.pn-all:hover{text-decoration:underline}
@media (max-width:720px){ .ex-item{padding:44px 0 52px} .prev-next{grid-template-columns:minmax(0,1fr)}
  .pn.prev,.pn.next,.pn-all{grid-column:1;grid-row:auto} .pn-all{justify-self:center} }
