/* ozdc.us — classic light disassembler theme */

@font-face {
  font-family: "Fixedsys Excelsior";
  src: url("../fonts/fixedsys-excelsior.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}

:root {
  /* window chrome */
  --chrome:    #f0f0f0;
  --chrome-2:  #e3e3e3;
  --line:      #b9b9b9;
  --bevel-lt:  #ffffff;
  --bevel-dk:  #a0a0a0;
  --ui-fg:     #1a1a1a;
  --ui-dim:    #6d6d6d;
  --sel:       #3378d6;     /* list selection */

  /* listing */
  --paper:  #ffffff;
  --fg:     #000000;
  --addr:   #000000;
  --seg:    #404040;
  --mn:     #000080;        /* instructions */
  --rg:     #000080;        /* registers / operands */
  --nm:     #0000ff;        /* names, labels */
  --st:     #008000;        /* strings */
  --nu:     #008040;        /* numbers */
  --cm:     #808080;        /* comments */
  --kw:     #000080;
  --bad:    #ff0000;
  --hl:     #ffff00;        /* identifier highlight */
  --curln:  #dce8fb;        /* current line */

  --adw: 16ch;
  --mono: "Fixedsys Excelsior", "Fixedsys", "Consolas", "Lucida Console", "Courier New", monospace;
  --ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--chrome);
  color: var(--fg);
  font: 400 16px/1 var(--mono);
  -webkit-font-smoothing: none;
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--hl); color: var(--fg); }
a { color: inherit; text-decoration: none; }
code, pre, kbd, samp { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--hl); color: #000; padding: 2px 10px; font: 13px var(--ui); }
.skip:focus { left: 8px; }
.defs { position: absolute; }

/* ---------- layout ---------- */

.app {
  display: grid;
  height: 100vh; height: 100dvh;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  grid-template-areas: "menu menu" "tool tool" "band band" "funcs view" "con con" "status status";
  gap: 0 4px;
}

/* menu bar */
.menubar {
  grid-area: menu;
  display: flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 6px;
  background: var(--chrome);
  font: 13px/1 var(--ui); color: var(--ui-fg);
}
.brand {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 10px; padding: 2px 4px 2px 2px;
  font: 16px/1 var(--mono); color: #000;
}
.brand .emblem { width: 22px; height: 22px; }
.brand span { background: var(--hl); padding: 3px 4px 2px; outline: 1px solid #d4c400; }
.brand:hover span { background: #000080; color: #fff; outline-color: #000080; }
.menu { display: flex; gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.menu a { padding: 5px 9px; white-space: nowrap; border: 1px solid transparent; }
.menu a u { text-decoration: underline; text-underline-offset: 2px; }
.menu a:hover { background: #cce4f7; border-color: #99c9ef; }
.menu a.on { background: #dcdcdc; border-color: var(--line); }
.arch { margin-left: auto; color: var(--ui-dim); font: 13px var(--ui); white-space: nowrap; }
.drawer-btn { display: none; }

/* toolbar */
.toolbar {
  grid-area: tool;
  display: flex; align-items: center; gap: 1px;
  height: 32px; padding: 0 6px;
  background: linear-gradient(#f7f7f7, #e9e9e9);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tb {
  display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer;
}
.tb svg { width: 16px; height: 16px; }
.tb:hover { background: #e5f1fb; border-color: #8fbbe8; }
.tb:active { background: #cce4f7; }
.tb:disabled { opacity: .35; cursor: default; background: transparent; border-color: transparent; }
.tsep { width: 1px; height: 20px; margin: 0 5px; background: var(--line); box-shadow: 1px 0 0 var(--bevel-lt); }
.tspace { flex: 1; }
.tinfo { font: 12px var(--ui); color: var(--ui-dim); white-space: nowrap; }

/* overview / navigation band */
.navband {
  grid-area: band; position: relative;
  height: 18px; margin: 4px 4px; padding: 3px 1px;
  background: var(--chrome);
  border: 1px solid; border-color: var(--bevel-dk) var(--bevel-lt) var(--bevel-lt) var(--bevel-dk);
}
.navband svg { display: block; width: 100%; height: 10px; }
.s-hdr  { fill: #a0a0a0; }
.s-code { fill: #0060ff; }
.s-fn0  { fill: #0080ff; }
.s-fn1  { fill: #3399ff; }
.s-rod  { fill: #00c0c0; }
.s-dat  { fill: #b4b4b4; }
.s-unx  { fill: #8c7a3c; }
.marker { position: absolute; top: -3px; left: 0; display: none; transition: left .5s cubic-bezier(.2, .7, .2, 1); }
.js .marker { display: block; }
.marker::before { content: ""; position: absolute; left: -1px; top: 4px; width: 2px; height: 14px; background: #ffd400; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.marker::after  { content: ""; position: absolute; left: -6px; top: -1px; border: 6px solid transparent; border-top: 7px solid #ffd400; border-bottom: 0; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }

/* docks (Qt-style panels) */
.dock {
  min-height: 0; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
}
.dock-t {
  display: flex; align-items: center; gap: 8px;
  height: 22px; padding: 0 6px; flex: 0 0 auto;
  background: linear-gradient(#f4f4f4, #e2e2e2);
  border-bottom: 1px solid var(--line);
  font: 12px/1 var(--ui); color: var(--ui-fg);
}
.dock-t .count { color: var(--ui-dim); }
.dock-t .count::before { content: "("; }
.dock-t .count::after { content: ")"; }
.dbtn { margin-left: auto; width: 24px; height: 11px; opacity: .6;
  background:
    linear-gradient(45deg, transparent 42%, #555 42% 58%, transparent 58%) right / 9px 9px no-repeat,
    linear-gradient(-45deg, transparent 42%, #555 42% 58%, transparent 58%) right / 9px 9px no-repeat,
    linear-gradient(#555, #555) 1px 1px / 8px 1px no-repeat,
    linear-gradient(#555, #555) 1px 9px / 8px 1px no-repeat,
    linear-gradient(#555, #555) 1px 1px / 1px 9px no-repeat,
    linear-gradient(#555, #555) 8px 1px / 1px 9px no-repeat;
}

/* ---------- Functions window ---------- */

.funcs { grid-area: funcs; margin-left: 4px; }
.cols {
  display: flex; justify-content: space-between;
  padding: 3px 8px 3px 30px; flex: 0 0 auto;
  font: 12px var(--ui); color: var(--ui-fg);
  background: linear-gradient(#fdfdfd, #ececec); border-bottom: 1px solid var(--line);
}
.cols span + span { border-left: 1px solid var(--line); padding-left: 8px; }
.fnlist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 0 1 auto; min-height: 0; }
.funcs:has(.fn) .fnlist { flex: 1 1 auto; }
.fn {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 4px;
  padding: 2px 8px 2px 6px; line-height: 16px;
}
.fn:hover { background: #e8f0fc; }
.fn.on { background: var(--sel); color: #fff; }
.fi {
  display: grid; place-items: center; width: 16px; height: 16px;
  font: italic 700 12px/1 Georgia, "Times New Roman", serif; color: #fff;
  background: linear-gradient(#4f9bff, #1f66d6); border: 1px solid #1a4fa8;
}
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faddr { color: var(--ui-dim); }
.fn.on .faddr { color: #dfe9ff; }
.fn.hide { display: none; }
.fn-empty { padding: 8px; flex: 1 1 auto; font: 13px/1.5 var(--ui); color: var(--ui-fg); }
.fn-empty .dim { color: var(--ui-dim); }
.filter {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 3px 6px; border-top: 1px solid var(--line); background: var(--chrome);
  font: 12px var(--ui); color: var(--ui-fg);
}
.filter input {
  flex: 1; min-width: 0; height: 22px; padding: 0 4px;
  font: 16px/1 var(--mono); color: #000;
  background: #fff; border: 1px solid; border-color: var(--bevel-dk) var(--bevel-lt) var(--bevel-lt) var(--bevel-dk);
  outline: none; border-radius: 0;
}
.filter input:focus { border-color: var(--sel); }
.dock-foot { padding: 3px 6px; font: 11px var(--ui); color: var(--ui-dim); background: var(--chrome); border-top: 1px solid var(--line); }

/* ---------- disassembly view ---------- */

.viewwin { grid-area: view; margin-right: 4px; position: relative; }
.tabs {
  display: flex; align-items: flex-end; gap: 2px; flex: 0 0 auto;
  height: 27px; padding: 0 4px; background: var(--chrome);
  border-bottom: 1px solid var(--line);
  font: 12px/1 var(--ui);
}
.tab {
  display: flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 10px;
  border: 1px solid var(--line); border-bottom: 0;
  background: linear-gradient(#f2f2f2, #e0e0e0); color: var(--ui-dim);
  white-space: nowrap; overflow: hidden;
}
.tab.on { height: 25px; margin-bottom: -1px; background: var(--paper); color: var(--ui-fg); }
.tab .ti { width: 14px; height: 14px; flex: 0 0 auto; }
.tname { color: #000080; font: 16px/1 var(--mono); transition: background .3s; }
.view {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  background: var(--paper); outline: none;
}
.listing { padding: 4px 0 40px; }

.ln { display: flex; align-items: baseline; min-height: 16px; line-height: 16px; padding-right: 2ch; }
.ln.cur { background: var(--curln); }
.ln > .ad { flex: 0 0 var(--adw); padding-left: 1ch; white-space: nowrap; color: var(--addr); user-select: none; }
.ln > .ad .sg { color: var(--seg); }
.ins, .bd { flex: 1 1 auto; min-width: 0; padding-left: 1ch; }
.ins { white-space: pre-wrap; }
.ins .lb { display: inline-block; min-width: 16ch; }
.ins .mn { display: inline-block; min-width: 8ch; padding-right: 1ch; }
.mn  { color: var(--mn); }
.rg, .op { color: var(--rg); }
.nm, .nm-l { color: var(--nm); }
.st  { color: var(--st); }
.nu  { color: var(--nu); }
.kw  { color: var(--kw); }
.cm  { color: var(--cm); }
.ins .cm { margin-left: 2ch; }
.ln.c .ins .cm, .ln.lbl .ins .cm { margin-left: 0; }
.ln.lbl .ins .lb + .cm { margin-left: 4ch; }
.ln.bad .mn { color: var(--bad); }

/* prose blocks (post bodies) */
.k-p .bd, .k-list .bd, .k-quote .bd, .k-h .bd, .k-code .bd, .k-hr .bd { max-width: 84ch; }
.bd p { margin: 0; line-height: 20px; color: #000; }
.k-p { margin-bottom: 12px; }
.bd p code, .bd li code { color: var(--st); background: #f1f7ec; outline: 1px solid #d6e6cb; padding: 0 2px; }
.bd a { color: var(--nm); text-decoration: underline; }
.bd a:hover { background: var(--hl); }
.bd a.ext::after { content: " \2197"; font: 12px var(--ui); }
.bd strong { color: #000080; font-weight: 400; text-decoration: underline; text-decoration-style: double; text-underline-offset: 3px; }
.bd em { color: #800080; font-style: normal; }
.bd del { color: var(--cm); }
.bd img { display: block; max-width: 100%; height: auto; margin: 6px 0; border: 1px solid var(--line); }

.bd h2, .bd h3, .bd h4 { margin: 14px 0 4px; color: var(--nm); font-weight: 400; font-size: 16px; line-height: 16px; }
.bd h2::after, .bd h3::after, .bd h4::after { content: ":"; }
.bd h2::before { content: "; ---------------------------------------------------------------"; display: block; color: var(--cm); margin-bottom: 4px; overflow: hidden; white-space: nowrap; }
.bd h3, .bd h4 { color: #000080; }

.bd ul, .bd ol { margin: 0 0 12px; padding-left: 0; list-style: none; line-height: 20px; counter-reset: li; }
.bd li { position: relative; padding-left: 4ch; }
.bd ul li::before { content: "db"; position: absolute; left: 0; color: var(--mn); }
.bd ol li { counter-increment: li; }
.bd ol li::before { content: counter(li, decimal-leading-zero) "h"; position: absolute; left: 0; color: var(--nu); }

.bd blockquote { margin: 0 0 12px; padding: 2px 0 2px 1ch; border-left: 2px solid #c0c0c0; }
.bd blockquote p { color: var(--cm); line-height: 20px; }
.bd blockquote p::before { content: "; "; }

.bd hr { border: 0; margin: 8px 0; }
.bd hr::before { content: "; ==============================================================="; color: var(--cm); display: block; overflow: hidden; white-space: nowrap; }

/* code blocks */
pre.code {
  position: relative; margin: 2px 0 12px;
  padding: 8px 1ch; overflow-x: auto;
  background: #fbfbf8; border: 1px solid #d0d0d0; border-left: 3px solid #000080;
  font: 16px/16px var(--mono); color: #000;
  tab-size: 4;
}
pre.code[data-lang]::before {
  content: attr(data-lang);
  position: absolute; top: 0; right: 0; padding: 2px 6px;
  font: 11px var(--ui); color: var(--ui-dim); background: var(--chrome); border-left: 1px solid #d0d0d0; border-bottom: 1px solid #d0d0d0;
}
pre.code .ad { color: var(--addr); }
pre.code .by { color: #909090; }
pre.code .z  { color: #b0b0b0; }
pre.code[data-lang="pgp"] { color: #000080; max-width: 70ch; }

/* page titles */
.ptitle { margin: 6px 0 8px; font: 32px/32px var(--mono); font-weight: 400; color: #000080; }
.ptitle::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 12px; background: var(--hl); outline: 1px solid #c8b400; vertical-align: 4px; }
.ptitle.err { color: var(--bad); }
.ptitle.err::before { background: var(--bad); outline-color: #900; }

/* cross-reference lines */
.bd a.xref, .bd a.xref:hover { text-decoration: none; background: none; }
.xref { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 1ch; }
.xref .mn { min-width: 8ch; display: inline-block; }
.xref .nm { text-decoration: underline; }
.xref .tags { color: var(--cm); }
.xref:hover .nm { background: var(--hl); }

/* db lines (contact) */
.dbl { white-space: pre-wrap; line-height: 16px; }
.dbl .nm { display: inline-block; min-width: 16ch; }
.dbl .mn { display: inline-block; min-width: 8ch; padding-right: 1ch; }
.dbl .op { color: var(--rg); }
.dbl .cm { margin-left: 2ch; }
.dbl a { color: var(--st); text-decoration: underline; }
.dbl a:hover { background: var(--hl); }
.ln .cm a.cl { color: var(--st); text-decoration: underline; }
.ln .cm a.cl:hover { background: var(--hl); }

/* ---------- hero: ozdc.us ---------- */

.k-hero .bd { padding-top: 20px; padding-bottom: 24px; }
.wordmark { display: flex; flex-wrap: wrap; align-items: flex-end; margin: 0; font: 96px/1 var(--mono); font-weight: 400; color: #000080; }
.cell { display: inline-flex; flex-direction: column; align-items: center; cursor: default; }
.cell b { font-weight: 400; padding: 0 2px; line-height: .78; }
.cell i { font: 16px/16px var(--mono); font-style: normal; margin-top: 10px; color: var(--nu); padding: 0 2px; }
.cell.dot b { color: var(--nm); }
.cell.nul i { color: var(--cm); }
.cell:hover b, .cell:hover i { background: var(--hl); }
.caret { display: inline-block; width: 48px; height: 64px; background: #000080; animation: blink 1s steps(1) infinite; vertical-align: baseline; }
@keyframes blink { 50% { opacity: 0; } }
.tagline { margin: 22px 0 0; }
.tagline .nm { display: inline-block; min-width: 16ch; }
.tagline .mn { display: inline-block; min-width: 8ch; }
.empty p { margin: 0; line-height: 16px; }

/* ---------- output window ---------- */

.console { grid-area: con; height: 150px; margin: 4px 4px 0; }
.log { flex: 1 1 auto; overflow-y: auto; padding: 4px 6px; font: 16px/16px var(--mono); color: #000; }
.log .dim { color: var(--cm); }
.log b { color: #000080; font-weight: 400; }
.log .err { color: #c00000; }
.log .in::before { content: "> "; color: var(--cm); }
.log a { color: var(--nm); text-decoration: underline; }
.log .addr { color: #000; }
.log .st { color: var(--st); }
.prompt { display: none; align-items: center; gap: 4px; padding: 3px 4px; background: var(--chrome); border-top: 1px solid var(--line); flex: 0 0 auto; }
.js .prompt { display: flex; }
.prompt label {
  padding: 3px 8px; font: 12px var(--ui); color: var(--ui-fg);
  background: linear-gradient(#fdfdfd, #e6e6e6); border: 1px solid #adadad; border-radius: 2px;
}
.prompt input {
  flex: 1; min-width: 0; height: 22px; padding: 0 4px;
  font: 16px/1 var(--mono); color: #000; background: #fff;
  border: 1px solid; border-color: var(--bevel-dk) var(--bevel-lt) var(--bevel-lt) var(--bevel-dk); outline: none; border-radius: 0;
}
.prompt input:focus { border-color: var(--sel); }

/* ---------- status bar ---------- */

.statusbar {
  grid-area: status;
  display: flex; align-items: center;
  height: 24px; padding: 0 2px; margin-top: 4px;
  background: var(--chrome); border-top: 1px solid var(--line);
  font: 12px var(--ui); color: var(--ui-fg);
  white-space: nowrap; overflow: hidden;
}
.statusbar > span, .statusbar > a { padding: 2px 10px; border-right: 1px solid var(--line); }
.statusbar .sp { flex: 1; border: 0; }
.statusbar b { font-weight: 600; }
.statusbar .cur { font: 16px/1 var(--mono); }
.statusbar .mail { border-right: 0; color: #0645ad; }
.statusbar .copy { color: var(--ui-fg); white-space: nowrap; }
.statusbar .copy:hover { text-decoration: underline; }
.statusbar .mail:hover { text-decoration: underline; }
.busy #au { color: #c00000; }

/* ---------- transitions ---------- */

.view.out .listing > .ln { animation: ln-out .15s ease-in both; }
@keyframes ln-out { to { opacity: 0; } }
.view.in .listing > .ln { animation: ln-in .32s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes ln-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  30%  { opacity: 1; }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
/* "re-analysis" sweep down the view + tab name flash */
.viewwin::after {
  content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 2px; pointer-events: none;
  background: #ffd400; box-shadow: 0 0 6px #ffd400; opacity: 0;
}
.viewwin.flick::after { animation: sweep .5s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes sweep { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(60vh); } }
.viewwin.flick .tname { background: var(--hl); }

.fnlist li { animation: fn-in .3s ease-out both; animation-delay: calc(var(--i, 0) * 30ms + 80ms); }
@keyframes fn-in { from { opacity: 0; transform: translateX(-6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .caret { animation: none; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 1000px) {
  .wordmark { font-size: 64px; }
  .caret { width: 32px; height: 44px; }
}
@media (max-width: 860px) {
  :root { --adw: 9ch; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "menu" "tool" "band" "view" "con" "status"; }
  .menubar { padding: 0 4px 0 0; }
  .drawer-btn { display: grid; place-items: center; width: 32px; height: 30px; background: transparent; border: 0; font: 18px/1 var(--ui); cursor: pointer; color: var(--ui-fg); }
  .brand { margin-right: 4px; }
  .arch, .menu .rss, .tinfo { display: none; }
  .menu { margin-left: auto; }
  .menu a { padding: 5px 7px; }
  .funcs {
    position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; margin: 0;
    width: min(320px, 86vw);
    transform: translateX(-104%); transition: transform .25s ease;
    box-shadow: 6px 0 24px rgba(0, 0, 0, .25);
  }
  .drawer .funcs { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .3); }
  .scrim[hidden] { display: none; }
  .viewwin { margin: 0 4px; }
  .ln > .ad .sg { display: none; }
  .ins .lb { min-width: 9ch; }
  .ins .mn { min-width: 6ch; }
  .ln { padding-right: 1ch; }
  .k-hero > .ad { display: none; }
  .wordmark { font-size: 48px; }
  .cell i { margin-top: 6px; }
  .caret { width: 24px; height: 32px; }
  .ptitle { font-size: 24px; line-height: 26px; }
  .console { height: 128px; }
  .console .dock-t { display: none; }
  .log { font: 13px/15px var(--mono); padding: 3px 6px; }
  .prompt input { font-size: 16px; }   /* 16px stops iOS from zooming on focus */
  .keys, .statusbar .sb:not(.mail) { display: none; }
  .statusbar .copy { margin-left: auto; border-right: 0; }
  .tab { padding: 0 8px; }
  .ha { display: none; }
  .dbl .nm, .tagline .nm { min-width: 9ch; }
  .tagline .mn { min-width: 4ch; }
  .dbl .mn { min-width: 4ch; }
  .fpr { word-break: break-all; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 40px; }
  .statusbar .mail { display: none; }
}

/* ---------- Hex View / Strings ---------- */

.tabs button.tab { font: inherit; cursor: pointer; }
.tabs button.tab.off:hover { background: linear-gradient(#f8f8f8, #e8e8e8); color: var(--ui-fg); }
.tabs button.tab:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
.pane { padding: 4px 0 40px; }
.pane[hidden], .listing[hidden] { display: none; }
.pane-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 3px 1ch; background: #f6f6f6; border-bottom: 1px solid #e0e0e0;
  font: 12px var(--ui); color: var(--ui-dim);
}
.pane-head .ad { font: 16px var(--mono); color: var(--addr); }
.pane-empty { padding: 4px 1ch 4px calc(var(--adw) + 2ch); color: var(--cm); }
.hx .hb { padding-left: 2ch; white-space: pre; }
.hx .hb i, .hx .ha i { font-style: normal; cursor: pointer; }
.hx .hb i { margin-right: 1ch; }
.hx .hb i.z { color: #a0a0a0; }
.hx .hb i.pad { cursor: default; }
.hx .hb .mid { display: inline-block; width: 1ch; }
.hx .ha { padding-left: 1ch; white-space: pre; color: var(--st); border-left: 1px solid var(--line); }
.hx .hb i:hover, .hx .ha i:hover { background: #e3ecfb; }
.hx i.sel { background: var(--hl) !important; color: #000; }
.strtab { border-collapse: collapse; font: 16px/16px var(--mono); margin: 0 0 0 1ch; }
.strtab th {
  position: sticky; top: 22px; z-index: 1;
  text-align: left; padding: 3px 12px 3px 4px;
  font: 12px var(--ui); font-weight: 400; color: var(--ui-fg);
  background: linear-gradient(#fdfdfd, #ececec); border-bottom: 1px solid var(--line);
}
.strtab th + th { border-left: 1px solid var(--line); }
.strtab td { padding: 1px 12px 1px 4px; white-space: nowrap; cursor: pointer; }
.strtab td.ad { color: var(--addr); }
.strtab td.ad .sg { color: var(--seg); }
.strtab td.st { white-space: pre-wrap; max-width: 70ch; }
.strtab tbody tr:hover td, .strtab tbody tr:focus td { background: #e8f0fc; outline: none; }

/* markdown tables */
.k-table .bd { max-width: 84ch; }
.k-table { margin-bottom: 12px; }
.tbl-wrap { overflow-x: auto; }
.mdtbl { border-collapse: collapse; line-height: 18px; }
.mdtbl th, .mdtbl td { padding: 3px 1ch; border: 1px solid #c8c8c8; text-align: left; vertical-align: top; }
.mdtbl thead th { background: var(--chrome); color: #000080; font-weight: 400; }
.mdtbl tbody tr:nth-child(even) td { background: #fafafa; }
.mdtbl code { color: var(--st); background: #f1f7ec; outline: 1px solid #d6e6cb; padding: 0 2px; }

/* ---------- phones: give the text the whole width ---------- */
@media (max-width: 600px) {
  .ln.blk > .ad { display: none; }
  .ln.blk > .bd { padding-left: 1ch; }
  .ln { padding-right: 6px; }
  .menu a { padding: 5px 5px; font-size: 12px; }
  .menubar .brand span { padding: 3px 3px 2px; }
  .bd p, .bd li { line-height: 21px; }
  pre.code { padding: 6px 6px; }
  pre.code[data-lang]::before { display: none; }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
  .mdtbl { font-size: 14px; line-height: 17px; }
  .mdtbl th, .mdtbl td { padding: 3px 4px; }
  .ptitle { font-size: 22px; line-height: 24px; }
}
