/* article-content.css
   Structural styles for archived article bodies that are absent from the
   archived original-site stylesheets: Hike/Shiki code block chrome
   (.code-wrapper/.code-header/.code-base/.line-number), code typography
   (colors come from the --ch-* theme in 0w2g8mc6ol1fk.css), and the
   chat-message arbitrary-variant utilities ([&_p]:* etc.). */

/* ---- code blocks ---- */
.code-wrapper{position:relative}
.code-header{min-width:0}
.code-header .text-nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.code-base{position:relative}
.code-base pre{
  margin:0;
  padding:10px 0;
  font-family:GeistMono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:13px;
  line-height:1.7;
  overflow-x:auto;
  background:transparent;
  color:var(--ch-4,#24292f);
  tab-size:2;
}
.dark .code-base pre{color:var(--ch-4,#c9d1d9)}
.code-base pre>div{min-width:fit-content}
.code-base .flex{min-width:0}
.line-number{flex:none;min-width:2.5ch;text-align:right}
.hike-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border:0;
  background:transparent;
  padding:4px;
  border-radius:6px;
  color:var(--color-zinc-400);
  transition:color .15s ease;
}
.hike-button:hover{color:var(--color-pink-500)}

/* ---- static excalidraw diagrams ---- */
.keepzml-excalidraw-static{position:relative;width:100%;overflow:hidden;border-radius:12px;background:#fff}
.keepzml-excalidraw-static svg{display:block;width:100%;height:100%}
.dark .keepzml-excalidraw-static{background:#09090b}
.dark .keepzml-excalidraw-static svg{filter:brightness(.85) saturate(.9)}

/* ---- chat-message arbitrary variants ---- */
.\[\&_li\]\:my-1\! li{margin-block:calc(var(--spacing) * 1)!important}
.\[\&_li\]\:text-\[15px\]\! li{font-size:15px!important}
.\[\&_li\]\:leading-7\! li{line-height:calc(var(--spacing) * 7)!important}
.\[\&_li\]\:text-current\! li{color:currentColor!important}
.\[\&_ol\]\:my-1\! ol{margin-block:calc(var(--spacing) * 1)!important}
.\[\&_ul\]\:my-1\! ul{margin-block:calc(var(--spacing) * 1)!important}
.\[\&_p\]\:my-0\! p{margin-block:0!important}
.\[\&_p\]\:text-\[15px\]\! p{font-size:15px!important}
.\[\&_p\]\:font-normal\! p{font-weight:400!important}
.\[\&_p\]\:leading-7\! p{line-height:calc(var(--spacing) * 7)!important}
.\[\&_p\]\:tracking-normal\! p{letter-spacing:normal!important}
.\[\&_p\]\:text-current\! p{color:currentColor!important}
