/* Shadow Rack - documentation, changelog, devlog (made by scripts/site-content.py from content/).
   The website's look (black, white, the logo's red; Jost headings, Inter text) made for reading:
   a calm column, the app's own pictures with numbered marks, keys as keycaps, the app's labels as the app shows them. */
:root {
  --bg: #060607;
  --bg2: #0b0b0d;
  --surface: #111114;
  --surface2: #18181c;
  --border: #22222a;
  --borderHi: #383842;
  --text: #f2f2f3;
  --dim: #b4b4bc;
  --faint: #73737c;
  --red: #c8242c;
  --redLit: #ff3b40;
  --green: #36d15c;
  --yellow: #e9c53c;
  --cyan: #22c3e6;
  --head: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --top: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.red { color: var(--redLit); }
kbd { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding: 0 .45em; border-radius: 5px; font: 600 .78em/1 var(--sans);
  color: var(--text); background: linear-gradient(#2a2a31, #1c1c21); border: 1px solid #3b3b45; border-bottom-width: 2px; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; vertical-align: .08em; }
.keys { display: inline-flex; gap: 3px; white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 12px/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--redLit); box-shadow: 0 0 10px var(--redLit); animation: led 2.4s ease-in-out infinite; }
@keyframes led { 50% { opacity: .35; box-shadow: 0 0 2px var(--redLit); } }
@media (prefers-reduced-motion: reduce) { .led { animation: none; } * { scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ top bar */
.dtop { position: sticky; top: 0; z-index: 50; height: var(--top); background: rgba(6, 6, 7, .84); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--border); }
.dtop-in { display: flex; align-items: center; gap: 22px; height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.dbrand img { height: 28px; width: auto; }
.dtabs { display: flex; gap: 4px; margin-left: 8px; }
.dtabs a { position: relative; padding: 7px 12px; border-radius: 7px; font: 500 14.5px var(--sans); color: var(--dim); transition: color .2s, background .2s; }
.dtabs a:hover { color: var(--text); background: #141418; }
.dtabs a.on { color: var(--text); }
.dtabs a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px; background: var(--redLit); border-radius: 2px; }
.dsearch { display: flex; align-items: center; gap: 10px; margin-left: auto; width: 260px; height: 36px; padding: 0 8px 0 12px; border-radius: 9px; background: #111115; border: 1px solid var(--border); color: var(--faint); font-size: 14px; transition: border-color .2s, color .2s; }
.dsearch:hover { border-color: var(--borderHi); color: var(--dim); }
.dsearch span { flex: 1; text-align: left; }
.dver { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--border); font: 600 12.5px var(--mono); color: var(--dim); }
.dver i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.dver:hover { border-color: var(--borderHi); color: var(--text); }
.dlang { display: flex; border-radius: 7px; border: 1px solid var(--border); overflow: hidden; }
.dlang a { padding: 5px 9px; font: 600 12px var(--sans); letter-spacing: .06em; color: var(--faint); }
.dlang a:hover { color: var(--text); }
.dlang a.on { color: var(--text); background: #1d1d22; }
.dburger { display: none; width: 38px; height: 38px; margin-left: -8px; place-items: center; border-radius: 8px; }
.dburger .ico { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ docs layout */
.dlayout { display: grid; grid-template-columns: 270px minmax(0, 1fr) 230px; gap: 0; max-width: 1480px; margin: 0 auto; }
.dside { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 28px 18px 60px 24px; border-right: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }
.sgroup { margin-bottom: 26px; }
.sgroup-t { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font: 600 11.5px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.sgroup-t::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--mod); }
.sgroup a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 10px 5px 14px; margin-left: 2px; border-left: 1px solid var(--border); font-size: 14px; line-height: 1.45; color: var(--dim); transition: color .15s, border-color .15s, background .15s; }
.sgroup a:hover { color: var(--text); border-left-color: var(--borderHi); }
.sgroup a.on { color: var(--text); font-weight: 500; border-left: 2px solid var(--mod); padding-left: 13px; background: linear-gradient(90deg, rgba(255,255,255,.035), transparent); }
.stale-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); flex: none; }
.dmain { min-width: 0; padding: 40px clamp(20px, 4vw, 64px) 80px; }
.doc { max-width: 780px; margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13.5px; color: var(--faint); }
.crumbs a:hover { color: var(--text); }
.crumb-sec { color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.crumb-sec::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--mod); }
.doc h1 { margin: 0 0 14px; font: 600 clamp(34px, 4.4vw, 48px)/1.08 var(--head); letter-spacing: -.01em; text-wrap: balance; }
.lead { margin: 0 0 22px; font-size: 19px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--faint); }
.modtag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--border); font: 600 11.5px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.modtag i { width: 7px; height: 7px; border-radius: 50%; background: var(--mod); box-shadow: 0 0 8px var(--mod); }
.vchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font: 600 12px var(--mono); color: #9be7ad; background: rgba(54, 209, 92, .09); border: 1px solid rgba(54, 209, 92, .28); }
.vchip .ico { width: 13px; height: 13px; }
.vchip.old { color: #f3dc7a; background: rgba(233, 197, 60, .08); border-color: rgba(233, 197, 60, .3); }
a.vchip:hover { filter: brightness(1.2); }
.mi { display: inline-flex; align-items: center; gap: 6px; }
.mi .ico { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 16.5px; color: #dadade; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 59, 64, .6); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--redLit); }
.prose h2 { position: relative; margin: 52px 0 16px; padding-top: 26px; border-top: 1px solid var(--border); font: 600 27px/1.2 var(--head); color: var(--text); }
.prose h3 { position: relative; margin: 34px 0 12px; font: 600 20px/1.3 var(--head); color: var(--text); }
.prose h4 { margin: 26px 0 8px; font: 600 13px/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hash { margin-left: 10px; font-weight: 400; color: var(--faint); opacity: 0; transition: opacity .15s; text-decoration: none !important; }
h2:hover .hash, h3:hover .hash { opacity: 1; }
.since { display: inline-flex; vertical-align: middle; margin-left: 10px; padding: 3px 8px; border-radius: 5px; font: 600 11px/1.2 var(--mono); letter-spacing: 0; text-transform: none; color: #9be7ad; background: rgba(54, 209, 92, .08); border: 1px solid rgba(54, 209, 92, .25); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { color: var(--faint); font: 600 14px var(--mono); }
.prose code { padding: 2px 6px; border-radius: 5px; font: 500 .86em var(--mono); color: #f0f0f2; background: #19191e; border: 1px solid #26262d; }
.prose pre.code { margin: 0 0 22px; padding: 16px 18px; overflow-x: auto; border-radius: 10px; background: #0d0d10; border: 1px solid var(--border); font: 500 13.5px/1.6 var(--mono); }
.prose pre.code code { padding: 0; border: 0; background: none; }
.prose hr { border: 0; height: 1px; margin: 40px 0; background: var(--border); }
.prose blockquote { margin: 0 0 20px; padding: 2px 0 2px 18px; border-left: 3px solid var(--borderHi); color: var(--dim); }
.ui { display: inline-flex; align-items: center; height: 1.7em; padding: 0 .55em; border-radius: 4px; font: 700 .74em/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #ececf0; white-space: nowrap;
  background: linear-gradient(#25252b, #19191d); border: 1px solid #3a3a44; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; vertical-align: .1em; }
.table { margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th { padding: 11px 14px; text-align: left; font: 600 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: #0f0f12; border-bottom: 1px solid var(--border); }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 8px; }

/* boxes */
.box { display: flex; gap: 14px; margin: 0 0 22px; padding: 16px 18px; border-radius: 10px; background: var(--bx-bg, #0f1113); border: 1px solid var(--bx-line, var(--border)); border-left: 3px solid var(--bx, var(--cyan)); }
.box .ico { margin-top: 3px; color: var(--bx, var(--cyan)); width: 20px; height: 20px; }
.box > div { min-width: 0; flex: 1; }
.box p { margin: 0 0 10px; }
.box > div > *:last-child { margin-bottom: 0; }
.box-title { font: 600 13px/1.4 var(--head) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--bx, var(--cyan)); margin-bottom: 6px !important; }
.box-tip { --bx: var(--green); --bx-bg: rgba(54, 209, 92, .04); --bx-line: rgba(54, 209, 92, .16); }
.box-note { --bx: var(--cyan); --bx-bg: rgba(34, 195, 230, .04); --bx-line: rgba(34, 195, 230, .15); }
.box-warning { --bx: var(--yellow); --bx-bg: rgba(233, 197, 60, .05); --bx-line: rgba(233, 197, 60, .18); }
.box-live { --bx: var(--redLit); --bx-bg: rgba(200, 36, 44, .07); --bx-line: rgba(255, 59, 64, .22); }
.box-wing { --bx: var(--yellow); --bx-bg: linear-gradient(90deg, rgba(233, 197, 60, .07), rgba(233, 197, 60, .015)); --bx-line: rgba(233, 197, 60, .2); }
.box-new { --bx: var(--green); }
.box.stale { margin-top: -6px; }

/* steps */
.steps > ol { list-style: none; padding: 0; counter-reset: st; margin: 0 0 26px; }
.steps > ol > li { position: relative; counter-increment: st; margin: 0; padding: 0 0 22px 52px; }
.steps > ol > li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 700 14px/1 var(--mono); color: #fff; background: var(--red); box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(200, 36, 44, .35); }
.steps > ol > li::after { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: linear-gradient(var(--borderHi), var(--border)); }
.steps > ol > li:last-child { padding-bottom: 4px; }
.steps > ol > li:last-child::after { display: none; }

/* pictures */
.pic { margin: 6px 0 30px; }
.pic .zoom { display: block; width: 100%; cursor: zoom-in; }
.pic img { width: 100%; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.02); background: #0a0a0c; }
.pic figcaption { margin-top: 10px; font-size: 13.5px; color: var(--faint); text-align: center; }
.shot .frame { position: relative; }
/* a mark: a small dot exactly on the thing, its number a little up and to the left (the label stays readable) */
.mark { position: absolute; z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border-radius: 50%; background: var(--redLit); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(255, 59, 64, .35), 0 2px 8px rgba(0, 0, 0, .7); transition: transform .18s; }
.mark b { position: absolute; left: -26px; top: -26px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 700 11.5px/1 var(--mono); color: #fff; background: var(--red); border: 1.5px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .7); transition: transform .18s, background .18s; }
.mark.flip b { left: 14px; top: 14px; }
.mark::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--redLit); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s; }
.mark:hover, .mark.hot { transform: scale(1.15); z-index: 3; }
.mark:hover b, .mark.hot b { background: var(--redLit); transform: scale(1.12); }
.mark.hot::after, .mark:hover::after { opacity: .9; transform: scale(1); }
.legend { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; margin: 16px 0 0 !important; padding: 0 !important; }
.legend li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 7px 8px !important; border-radius: 8px; font-size: 14.5px; line-height: 1.5; transition: background .15s; cursor: default; }
.legend li.hot { background: #15151a; }
.legend .num { flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; font: 700 11.5px/1 var(--mono); background: var(--red); color: #fff; }

/* prev / next, footer of a page */
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 56px 0 20px; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.pn:hover { border-color: var(--borderHi); background: #0e0e11; }
.pn small { font-size: 12.5px; color: var(--faint); }
.pn b { font: 600 16px/1.35 var(--head); }
.pn.next { text-align: right; }
.phist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 46px 0 -30px; font-size: 13px; color: var(--faint); }
.phist span { margin-right: 4px; }
.wrong { margin: 26px 0 0; font-size: 13.5px; color: var(--faint); }
.wrong a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

/* table of contents */
.dtoc { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 44px 20px 40px 8px; scrollbar-width: none; }
.dtoc p { margin: 0 0 12px; font: 600 11.5px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.dtoc nav { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.dtoc a { padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.45; color: var(--faint); transition: color .15s, border-color .15s; }
.dtoc a.l3 { padding-left: 26px; font-size: 12.5px; }
.dtoc a:hover { color: var(--dim); }
.dtoc a.on { color: var(--text); border-left-color: var(--redLit); }

/* ------------------------------------------------------------------ docs home */
.dhome { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; }
.dhero, .chero { position: relative; padding: 80px 0 50px; }
.dhero::before, .chero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -60px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(200, 36, 44, .13), transparent); pointer-events: none; }
.dhero h1, .chero h1 { margin: 0 0 18px; font: 600 clamp(40px, 6.4vw, 76px)/1.02 var(--head); letter-spacing: -.02em; }
.sub { max-width: 640px; margin: 0 0 30px; font-size: 18.5px; line-height: 1.6; color: var(--dim); }
.bigsearch { display: flex; align-items: center; gap: 14px; width: min(560px, 100%); height: 56px; padding: 0 12px 0 18px; border-radius: 12px; background: #0f0f12; border: 1px solid var(--borderHi); color: var(--faint); font-size: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); transition: border-color .2s, box-shadow .2s; }
.bigsearch:hover { border-color: #4a4a55; box-shadow: 0 20px 50px -20px rgba(200, 36, 44, .25); }
.bigsearch span { flex: 1; text-align: left; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 24px 0 0; font-size: 14px; color: var(--faint); }
.stats b { color: var(--text); font-family: var(--mono); }
.hgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hcard { position: relative; display: flex; flex-direction: column; padding: 24px 24px 18px; border-radius: 14px; background: linear-gradient(180deg, #0f0f12, #0a0a0c); border: 1px solid var(--border); overflow: hidden; transition: border-color .25s, transform .25s; }
.hcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--mod), transparent 80%); }
.hcard:hover { border-color: var(--borderHi); }
.hcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hcard-top img { height: 46px; width: auto; margin: -6px 0 -6px -4px; }
.hcount { font: 600 12px var(--mono); color: var(--faint); padding: 3px 8px; border-radius: 99px; border: 1px solid var(--border); }
.hcard h2 { margin: 0 0 6px; font: 600 23px/1.2 var(--head); }
.hcard > p { margin: 0 0 16px; font-size: 14.5px; color: var(--dim); line-height: 1.55; }
.hcard nav { display: flex; flex-direction: column; margin-top: auto; }
.hcard nav a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid #18181d; font-size: 14.5px; color: var(--dim); transition: color .15s, padding .2s; }
.hcard nav a .ico { width: 15px; height: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; color: var(--redLit); }
.hcard nav a:hover { color: var(--text); padding-left: 4px; }
.hcard nav a:hover .ico { opacity: 1; transform: none; }
.hcard .more { padding-top: 8px; font-size: 13px; color: var(--faint); }
.teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; margin-top: 40px; padding: 32px; border-radius: 14px; border: 1px solid var(--border); background: radial-gradient(600px 200px at 0% 0%, rgba(200, 36, 44, .1), transparent), #0b0b0d; }
.teaser h2 { margin: 0 0 20px; font: 600 30px/1.15 var(--head); }
.btnline { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--borderHi); font: 500 14px var(--sans); color: var(--text); background: #111115; transition: border-color .2s, background .2s; }
.btnline:hover { border-color: #55555f; background: #17171b; }
.btnline .ico { width: 16px; height: 16px; }
.cg-plain { list-style: none; margin: 0; padding: 0; }
.cg-plain li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #18181d; font-size: 14.5px; color: #d6d6da; }
.cg-plain li:last-child { border: 0; }

/* ------------------------------------------------------------------ changelog */
.clog, .dlog { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; }
.chero-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cbar { position: sticky; top: var(--top); z-index: 20; margin: 0 -24px; padding: 12px 24px; background: rgba(6, 6, 7, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.cbar-in { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.cf { display: flex; flex-wrap: wrap; gap: 6px; }
.cf button { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--border); font: 500 13.5px var(--sans); color: var(--dim); transition: all .15s; }
.cf button:hover { color: var(--text); border-color: var(--borderHi); }
.cf button.on { color: #fff; background: var(--red); border-color: var(--red); }
.cm { margin-left: auto; }
.cm button.mt { height: 32px; padding: 0 12px; font-size: 12px; }
.cm button.on { background: var(--mtc); border-color: var(--mtc); color: #000; }
.clayout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; margin-top: 36px; }
.crail { position: sticky; top: calc(var(--top) + 80px); align-self: start; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.crail p { margin: 0 0 10px 16px; font: 600 11px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.crail a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; transition: border-color .15s; }
.crail a b { font: 600 15px var(--mono); color: var(--dim); }
.crail a small { font-size: 11.5px; color: var(--faint); }
.crail a.on { border-left-color: var(--redLit); }
.crail a.on b, .crail a:hover b { color: var(--text); }
.rel { display: grid; grid-template-columns: 1fr; padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--border); }
.rel:last-child { border: 0; }
.rel-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.rel-v { font: 700 46px/1 var(--mono); letter-spacing: -.03em; color: var(--text); }
.rel-v:hover { color: var(--redLit); }
.rel-next .rel-v { color: var(--faint); font-size: 30px; }
.rel-next { opacity: .85; }
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--faint); }
.kind { padding: 4px 9px; border-radius: 5px; font: 600 11px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--borderHi); }
.kind-minor { color: #fff; background: #23232a; }
.kind-major, .kind-first { color: #fff; background: var(--red); border-color: var(--red); }
.kind-patch { color: #9be7ad; border-color: rgba(54, 209, 92, .35); }
.kind-latest { color: #000; background: var(--green); border-color: var(--green); }
.rel-body h2 { margin: 6px 0 12px; font: 600 28px/1.2 var(--head); }
.rel-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--faint); }
.gig { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; }
.gig i { width: 7px; height: 7px; border-radius: 50%; }
.gig-safe { color: #9be7ad; background: rgba(54, 209, 92, .08); border: 1px solid rgba(54, 209, 92, .25); }
.gig-safe i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.gig-rehearse { color: #f3dc7a; background: rgba(233, 197, 60, .07); border: 1px solid rgba(233, 197, 60, .25); }
.gig-rehearse i { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.cnt { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--mono); color: var(--dim); }
.cnt i { width: 8px; height: 8px; border-radius: 2px; background: var(--cgc); }
.cnt-new { --cgc: var(--green); } .cnt-improved { --cgc: var(--cyan); } .cnt-fixed { --cgc: var(--yellow); } .cnt-removed { --cgc: var(--faint); } .cnt-known { --cgc: var(--redLit); }
.rel-sum { max-width: 760px; margin-bottom: 8px; }
.rel-pic { max-width: 900px; margin: 4px 0 26px; }
.rel-pic img { max-height: 420px; width: auto; max-width: 100%; }
.cgroups { display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.cg h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 12px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--cgc); }
.cg h3 i { width: 18px; height: 18px; border-radius: 5px; background: var(--cgc); opacity: .9; -webkit-mask: var(--cgi) center/14px no-repeat; mask: var(--cgi) center/14px no-repeat; }
.cg h3 span { font: 600 11px var(--mono); color: var(--faint); letter-spacing: 0; }
.cg ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.cg li, .cg-plain li { display: flex; gap: 10px; align-items: baseline; }
.cg li { padding: 8px 0 8px 18px; font-size: 15.5px; line-height: 1.6; color: #d8d8dc; }
.cg li .it { flex: 1; min-width: 0; }
.cg li strong { color: var(--text); }
.cg li a { text-decoration: underline; text-decoration-color: rgba(255,59,64,.5); text-underline-offset: 3px; }
.cg li[hidden] { display: none; }
.cg-new { --cgc: var(--green); --cgi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>"); }
.cg-improved { --cgc: var(--cyan); --cgi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 19V5M6 11l6-6 6 6' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.cg-fixed { --cgc: var(--yellow); --cgi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7.5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.cg-removed { --cgc: var(--faint); --cgi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>"); }
.cg-known { --cgc: var(--redLit); --cgi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v9M12 18.5v.5' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>"); }
.cg[hidden] { display: none; }
.mt { --mtc: var(--dim); display: inline-flex; align-items: center; flex: none; height: 19px; padding: 0 6px; border-radius: 4px; font: 700 10px/1 var(--head); letter-spacing: .12em; color: var(--mtc); border: 1px solid color-mix(in srgb, var(--mtc) 45%, transparent); position: relative; top: -1px; }
.mt-fx { --mtc: #ff5a5f; }
.mt-iem { --mtc: var(--cyan); }
.mt-wing { --mtc: var(--yellow); }
.mt-all { --mtc: var(--dim); }
.rel-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.rel-docs p { width: 100%; margin: 0 0 4px; font: 600 11.5px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.rel-docs a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 13.5px; color: var(--dim); }
.rel-docs a:hover { color: var(--text); border-color: var(--borderHi); }
.rel-docs .ico { width: 15px; height: 15px; }
.rel-post { display: flex; align-items: center; gap: 16px; max-width: 620px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 12px; border: 1px solid var(--border); background: #0c0c0e; transition: border-color .2s; }
.rel-post:hover { border-color: var(--borderHi); }
.rel-post img { width: 96px; height: 60px; object-fit: cover; border-radius: 7px; }
.rel-post span { flex: 1; display: flex; flex-direction: column; }
.rel-post small { font-size: 12px; color: var(--faint); }
.rel-post b { font: 600 16px/1.3 var(--head); }
.rel-post .ico { color: var(--redLit); }

/* ------------------------------------------------------------------ devlog */
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dcard { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--border); background: #0b0b0d; overflow: hidden; transition: border-color .25s, transform .25s; }
.dcard:hover { border-color: var(--borderHi); transform: translateY(-3px); }
.dcard-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e11; border-bottom: 1px solid var(--border); }
.dcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s; }
.dcard:hover .dcard-img img { transform: scale(1.04); }
.dcard-txt { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.dcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); }
.dcard-meta .vchip { height: 21px; font-size: 11px; padding: 0 8px; }
.tg { padding: 2px 7px; border-radius: 4px; background: #16161a; font-size: 11.5px; color: var(--dim); }
.dcard b { font: 600 21px/1.25 var(--head); }
.dcard .ex { font-size: 14.5px; line-height: 1.6; color: var(--dim); }
.dcard .rd { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--faint); }
.dcard .rd .ico { width: 15px; height: 15px; color: var(--redLit); transition: transform .2s; }
.dcard:hover .rd .ico { transform: translateX(4px); }
.dcard.feat { grid-column: 1 / -1; flex-direction: row; }
.dcard.feat .dcard-img { flex: 1.25; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--border); }
.dcard.feat .dcard-txt { flex: 1; padding: 34px 34px; justify-content: center; }
.dcard.feat b { font-size: 34px; }
.dcard.feat .ex { font-size: 16px; }
.post { max-width: 760px; margin: 0 auto; padding: 50px 24px 30px; }
.post-head h1 { margin: 16px 0 16px; font: 600 clamp(34px, 5vw, 54px)/1.06 var(--head); letter-spacing: -.015em; text-wrap: balance; }
.post-head .meta { border: 0; margin: 0; padding: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--faint); }
.back:hover { color: var(--text); }
.back .ico { width: 16px; height: 16px; }
.post-cover { margin: 10px -60px 40px; }
.post-cover img { width: 100%; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 30px 80px -30px #000; }
.post-body { font-size: 17.5px; line-height: 1.75; }
.post-body > p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font: 700 64px/.8 var(--head); color: var(--redLit); }

/* ------------------------------------------------------------------ footer */
.dfoot { border-top: 1px solid var(--border); margin-top: 20px; }
.dfoot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; max-width: 1480px; margin: 0 auto; padding: 30px 24px 40px; font-size: 13.5px; color: var(--faint); }
.dfoot-in img { height: 24px; width: auto; opacity: .8; }
.dfoot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.dfoot nav a:hover { color: var(--text); }
.dfoot p { margin: 0 0 0 auto; font-size: 12.5px; }

/* ------------------------------------------------------------------ search */
.dsearch-pop { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dsearch-pop[hidden] { display: none; }
.dsearch-box { width: min(680px, 100%); max-height: 72vh; display: flex; flex-direction: column; border-radius: 14px; background: #0e0e11; border: 1px solid var(--borderHi); box-shadow: 0 40px 100px -20px #000, 0 0 0 1px rgba(255,255,255,.03); overflow: hidden; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.dsearch-box label { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--border); color: var(--faint); }
.dsearch-box input { flex: 1; height: 100%; border: 0; outline: 0; background: none; font: 400 17px var(--sans); color: var(--text); }
.dsearch-box input::-webkit-search-cancel-button { display: none; }
.dsearch-res { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.dsearch-res:empty { display: none; }
.dsearch-res li a { display: block; padding: 10px 12px; border-radius: 9px; }
.dsearch-res li.on a { background: #1a1a20; box-shadow: inset 2px 0 0 var(--redLit); }
.dsearch-res .r1 { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.dsearch-res .r1 .k { padding: 1px 6px; border-radius: 4px; background: #1b1b21; font: 600 10px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.dsearch-res .r2 { font: 600 15.5px/1.35 var(--head); color: var(--text); }
.dsearch-res .r3 { font-size: 13.5px; line-height: 1.5; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dsearch-res mark { background: none; color: var(--redLit); font-weight: 600; }
.dsearch-empty { padding: 26px 16px; text-align: center; color: var(--faint); font-size: 14px; }
.dsearch-foot { display: flex; gap: 18px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
.dsearch-foot span { display: inline-flex; gap: 4px; align-items: center; }

/* lightbox */
.dlight { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .9); cursor: zoom-out; animation: fade .18s; }
.dlight[hidden] { display: none; }
.dlight img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 90px #000; }
@keyframes fade { from { opacity: 0; } }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 1180px) {
  .dlayout { grid-template-columns: 250px minmax(0, 1fr); }
  .dtoc { display: none; }
  .hgrid, .dgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .dburger { display: grid; }
  .dtabs { display: none; }
  .dsearch { width: auto; margin-left: auto; }
  .dsearch span, .dsearch kbd { display: none; }
  .dtop-in { gap: 12px; padding: 0 16px; }
  .dbrand img { height: 24px; }
  .dlayout { grid-template-columns: minmax(0, 1fr); }
  .dside { position: fixed; z-index: 60; top: var(--top); left: 0; width: min(320px, 86vw); background: #08080a; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
  body.side-open .dside { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: var(--top) 0 0; z-index: 55; background: rgba(0,0,0,.55); }
  .dside .mtabs { display: flex; }
  .dmain { padding: 28px 16px 60px; }
  .hgrid, .dgrid { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; padding: 22px; }
  .clayout { grid-template-columns: 1fr; }
  .crail { display: none; }
  .cm { margin-left: 0; }
  .clog, .dlog, .dhome { padding: 0 16px 30px; }
  .cbar { margin: 0 -16px; padding: 10px 16px; }
  .rel-v { font-size: 38px; }
  .dcard.feat { flex-direction: column; }
  .dcard.feat .dcard-img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--border); }
  .dcard.feat .dcard-txt { padding: 20px; }
  .dcard.feat b { font-size: 25px; }
  .post-cover { margin: 10px 0 30px; }
  .cols { grid-template-columns: 1fr; }
  .pnav { grid-template-columns: 1fr; }
  .dfoot p { margin: 0; }
  .mark { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .mark b { width: 17px; height: 17px; left: -19px; top: -19px; font-size: 9.5px; }
  .mark.flip b { left: 10px; top: 10px; }
  .dver { display: none; }
}
.mtabs { display: none; gap: 6px; margin-bottom: 22px; }
.mtabs a { padding: 6px 10px; border-radius: 7px; border: 1px solid var(--border); font-size: 13px; color: var(--dim); }
.mtabs a.on { color: #fff; border-color: var(--red); }

.dmenu { display: none; }
@media (max-width: 860px) {
  .dmenu { position: fixed; z-index: 49; top: var(--top); left: 0; right: 0; display: flex; flex-direction: column; padding: 8px 16px 14px; background: #08080a; box-shadow: 0 20px 40px rgba(0,0,0,.6); border-bottom: 1px solid var(--border); transform: translateY(-110%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
  body.menu-open .dmenu { transform: none; visibility: visible; transition: transform .22s ease; }
  .dmenu a { padding: 12px 4px; border-bottom: 1px solid #17171b; font: 500 17px var(--sans); color: var(--dim); }
  .dmenu a:last-child { border: 0; }
  .dmenu a.on { color: var(--text); }
  .dmenu a.on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--redLit); }
}

/* pictures a little wider than the text where there's room */
@media (min-width: 1181px) {
  .prose > .pic { margin-left: -36px; margin-right: -36px; }
  .prose > .pic figcaption, .prose > .pic .legend { margin-left: 36px; margin-right: 36px; }
}
