/* A converted notebook: nbconvert's output inside <div class="nb ss-<stylesheet>">.
   Shared by the preview page (render.py) and the site generator (sitegen), so the
   admin preview and the published article look the same. Everything is scoped to
   .nb so it can't collide with the site's own chrome. Uses the page's --muted,
   --line, --band tokens. */
.nb { --kk-blue:#0000ff; --kk-orange:#cc6600; --kk-gray:#808080; line-height:1.65; }
.nb [id] { scroll-margin-top:1rem; }
.nb .epigraph { text-align:center; font-style:italic; color:var(--muted); margin:0 auto 2rem; max-width:36rem; }
.nb .epigraph p:last-child { text-align:right; font-style:normal; }
.nb h1 { font-family:"Times New Roman",Georgia,serif; font-size:2.1rem; line-height:1.25; text-align:center;
         margin:.4rem 0 .4rem; letter-spacing:0; }
.nb .subtitle { text-align:center; font-family:"Times New Roman",Georgia,serif; font-style:italic;
                font-size:1.25rem; color:var(--kk-gray); margin-bottom:1.6rem; }
/* JournalArticle.nb built-in look, from his PDFs. His older notebooks greyed the
   title and left-aligned "References" with cell options, which still win (inline). */
.nb { --kk-navy:#000080; }
.nb.ss-JournalArticle .author { text-align:center; font-weight:700; color:var(--kk-navy); font-size:1.1rem; margin-top:1rem; }
.nb.ss-JournalArticle .institution { text-align:center; color:var(--kk-navy); font-family:"Times New Roman",Georgia,serif; margin-bottom:1.4rem; }
.nb.ss-JournalArticle h3.abstractsection { color:var(--kk-navy); font-family:inherit; font-size:1.15rem;
  max-width:36rem; margin:1.6rem auto .3rem; padding-bottom:.15rem; border-bottom:1px solid #000; }
.nb.ss-JournalArticle .abstract { max-width:36rem; margin:.5rem auto; color:var(--kk-navy); font-style:italic; }
.nb.ss-JournalArticle .abstract.cont { font-style:normal; font-family:"Times New Roman",Georgia,serif; }
/* Default.nb built-in look — colours sampled from his PDF export. Cell options still win. */
.nb.ss-Default h1, .nb.ss-Default h2, .nb.ss-Default h3, .nb.ss-Default h4 {
  font-family:"Source Sans Pro","Source Sans 3",-apple-system,"Segoe UI",sans-serif; font-weight:400; }
.nb.ss-Default h1 { color:#cc0c02; font-size:2.3rem; text-align:left; }
.nb.ss-Default h3.subsubsection { color:#cb4814; }
.nb .toc { background:var(--band); border:1px solid var(--line); padding:.9rem 1.2rem; margin:1.6rem 0 2.2rem; font-size:.92rem; }
.nb .toc b { display:block; margin-bottom:.3rem; }
.nb .toc a { display:block; } .nb .toc .l3 { padding-left:1.2rem; }
.nb h2 { font-family:"Times New Roman",Georgia,serif; font-size:1.6rem; text-align:center; margin:2.4rem 0 .4rem; }
.nb h2.title { font-size:1.9rem; margin-top:3rem; }  /* a monograph's later Title cells */
.nb .unconverted { color:#b91c1c; border:1px dashed #dc2626; padding:.4rem .7rem; font-size:.9rem; }
.nb h3 { font-family:"Times New Roman",Georgia,serif; font-size:1.25rem; text-align:center; margin:2rem 0 .6rem; }
.nb h4 { font-family:"Times New Roman",Georgia,serif; font-size:1rem; font-weight:400; margin:1.4rem 0 .4rem; }
.nb h3.refsection { font-size:1.6rem; margin:2.4rem 0 .4rem; }  /* JournalArticle: set like a Section */
.nb .date { text-align:center; color:var(--muted); font-size:.85rem; margin-bottom:1rem; }
.nb.ss-JournalArticle .date { color:var(--kk-blue); max-width:36rem; margin:0 auto 1rem; padding-top:.2rem;
  border-top:1px solid #000; }  /* the rule his PDFs draw under every section heading */
.nb p { margin-bottom:.9rem; }
.nb .eq { margin:1rem 0; overflow-x:auto; overflow-y:hidden; }
.nb .eq:target { background:#fff6d5; }
.nb .eq.empty { text-align:right; color:#bbb; font-size:.9rem; min-height:1.5rem; }
.nb .eq.left .katex-display, .nb .eq.left .katex-display > .katex { text-align:left; }
.nb .eq-text { margin:.6rem 0; }  /* prose he typed in a math cell: reads like the text around it */
/* A theorem/definition/proof and the equations that follow it. No box: his
   JournalArticle stylesheet draws none; any rules come from the cells' own
   CellFrame options. Statements are italic there, labels bold via StyleBox. */
.nb .group { margin:1.2rem 0; }
.nb .blk { margin:.4rem 0; }
.nb .blk.theorem, .nb .blk.definition, .nb .blk.lemma, .nb .blk.corollary { font-style:italic; }
.nb .blk.definition:not(.cont) { padding-left:.6rem; }
.nb pre.wl-in { font-family:"Source Code Pro",Menlo,Consolas,monospace; font-weight:600; font-size:.82rem;
                white-space:pre-wrap; word-break:break-word; margin:1rem 0 .3rem; padding:.3rem .6rem;
                border-left:3px solid #e8b4b4; background:#fff8f8; }
.nb .wl-out { margin:.2rem 0 1rem 1.2rem; overflow-x:auto; font-size:.95rem; }
.nb .wl-out.plain { font-family:"Times New Roman",Georgia,serif; word-break:break-word; }
.nb .wl-out .katex-display { text-align:left; margin:.3rem 0; } .nb .wl-out .katex-display > .katex { text-align:left; }
.nb .wl-table { overflow-x:auto; margin:.3rem 0 1rem 1.2rem; border:1px solid var(--line); }
.nb .wl-table table { border-collapse:collapse; font-size:.85rem; font-family:"Times New Roman",Georgia,serif; }
.nb .wl-table td { padding:.1rem .6rem; border-bottom:1px solid #eee; white-space:nowrap; }
.nb .wl-fig { margin:1rem 0 1.4rem; } .nb .wl-fig svg { max-width:100%; height:auto; }
/* A display cell holding a plot: caption, plot, equation number at the right. */
.nb .eq.fig { display:flex; align-items:center; gap:1rem; overflow:visible; }
.nb .fig-body { flex:1; min-width:0; text-align:center; }
.nb .fig-body .wl-fig { margin:.3rem 0; }
.nb .fig-cap { margin:.4rem 0 0; }
.nb .eq.fig .eqno { font-family:KaTeX_Main,"Times New Roman",serif; font-size:1.21em; }
.nb ol.refs, .nb ol.items, .nb ul.items { margin:.4rem 0 1rem 1.4rem; }
