/* jamesbrine.com.au homepage (v2). Built and content-hashed by /var/www/enhance/homepage_v2.py.
   Edit homepage_v2/css/home.css, not the deployed copy. Everything is namespaced with jb- and driven by the tokens below.
   Two displays: "crt" (dark phosphor, default) and "lcd" (light, after the BROKIA and BASIO screens).
   Colour carries one meaning throughout: --sig is site chrome and navigation, --data is numbers that came from the sensors. */

:root {
  --bg: #08120d;
  --pane: #0c1a13;
  --raise: #12261b;
  --line: #24452f;
  --text: #d6e9d0;
  --dim: #93b398;
  --sig: #72e06c;
  --data: #ffb93a;
  --alert: #ff7a6b;
  --on-sig: #06140a;
  --bar: rgba(255, 185, 58, .2);
  --scan: rgba(0, 0, 0, .16);
  --display: "Doto", "Martian Mono", ui-monospace, monospace;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --maxw: 1240px;
  --gut: clamp(16px, 3.2vw, 36px);
  color-scheme: dark;
}
:root[data-display="lcd"] {
  --bg: #c4cea7;
  --pane: #bcc79d;
  --raise: #b1bd90;
  --line: #7f8c64;
  --text: #18200f;
  --dim: #3b472b;
  --sig: #1f4a19;
  --data: #6e2c08;
  --alert: #8c1512;
  --on-sig: #d3dcb8;
  --bar: rgba(110, 44, 8, .2);
  --scan: transparent;
  color-scheme: light;
}
:root[data-wide="1"] { --maxw: 100%; }

body, :where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip), :where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) *, :where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) *::before, :where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: .875rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: break-word;
}
/* Scanlines: a fixed overlay, no animation. */
body::after {
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, var(--scan) 2px 3px);
  pointer-events: none;
  z-index: 50;
}
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) a, a.jb-skip { color: var(--sig); text-underline-offset: .22em; text-decoration-thickness: 1px; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) a:hover { text-decoration-thickness: 2px; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) :focus-visible { outline: 2px solid var(--data); outline-offset: 2px; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) p { margin: 0 0 1em; max-width: 76ch; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) :is(h1, h2, h3) { margin: 0; font-weight: 600; line-height: 1.25; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) :is(code, kbd, pre) { font-family: var(--mono); font-size: inherit; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 .4em; border-radius: 3px; color: var(--dim); }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) :is(button, input, select) { font: inherit; font-stretch: inherit; color: inherit; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.jb-bar, .jb-wrap, .jb-foot, .jb-skip) :is(dl, dd) { margin: 0; }

.jb-vh, .jb-sprite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jb-skip { position: absolute; left: 8px; top: -4rem; z-index: 100; background: var(--sig); color: var(--on-sig); padding: .5em 1em; }
.jb-skip:focus { top: 8px; }
.jb-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.jb-sprite symbol { overflow: visible; }

/* ---------------------------------------------------------------- status bar (tmux style) */
.jb-bar { position: sticky; top: 0; z-index: 40; background: var(--sig); color: var(--on-sig); font-size: .78rem; font-weight: 500; }
.jb-bar__in { width: min(var(--maxw), 100% - var(--dock)); margin: 0 auto 0 max(0px, (100% - var(--dock) - var(--maxw)) / 2); padding: 0 var(--gut); display: flex; align-items: stretch; gap: 0 1rem; flex-wrap: wrap; }
.jb-bar a, .jb-bar__btn { color: inherit; text-decoration: none; padding: .45rem .55rem; display: inline-flex; align-items: center; min-height: 2rem; }
.jb-bar a:hover, .jb-bar__btn:hover { background: var(--on-sig); color: var(--sig); }
.jb-bar :focus-visible { outline-color: var(--on-sig); outline-offset: -3px; }
.jb-bar__brand { font-weight: 700; margin-left: -.55rem; }
.jb-bar__nav { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.jb-bar__nav::-webkit-scrollbar { display: none; }
.jb-bar__nav a { white-space: nowrap; }
.jb-bar__nav a[aria-current="true"] { background: var(--on-sig); color: var(--sig); }
.jb-bar__nav a[aria-current="true"]::after { content: "*"; }
.jb-bar__right { display: flex; margin-left: auto; margin-right: -.55rem; }
.jb-bar__btn { background: none; border: 0; cursor: pointer; }
.jb-bar__btn[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
@media (max-width: 860px) {
  .jb-bar__in { width: 100%; margin-left: 0; }
  .jb-bar__brand { order: 1; }
  #jb-wide { display: none; }
  .jb-bar a, .jb-bar__btn { padding-left: .4rem; padding-right: .4rem; }
  .jb-bar__right { order: 2; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 3rem); }
  .jb-bar__nav { order: 3; flex-basis: 100%; margin: 0 -.55rem; border-top: 1px solid var(--on-sig); }
  html { scroll-padding-top: 6.5rem; }
}

/* ---------------------------------------------------------------- layout */
.jb-wrap { width: min(var(--maxw), 100% - var(--dock)); margin: 0 auto 0 max(0px, (100% - var(--dock) - var(--maxw)) / 2); padding: 0 var(--gut) 3rem; }

.jb-pane { position: relative; border: 1px solid var(--line); background: var(--pane); padding: 2.1rem clamp(14px, 2.6vw, 30px) 1.6rem; margin-top: 3.2rem; min-width: 0; }
/* The pane title sits on the border, like a tmux pane label. */
.jb-pane > h2 { position: absolute; top: 0; left: clamp(8px, 2vw, 22px); transform: translateY(-55%); background: var(--bg); border: 1px solid var(--line); padding: .15em .7em; font-size: 1rem; color: var(--sig); max-width: calc(100% - 16px); }
.jb-pane > h2::before { content: "# "; color: var(--dim); }
.jb-pane__intro { color: var(--dim); }
.jb-pane__foot { margin: 1.2rem 0 0; }
.jb-sub { font-size: .95rem; margin: 2rem 0 .8rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); color: var(--sig); }
.jb-source, .jb-status { color: var(--dim); font-size: .78rem; margin: .9rem 0 0; }
.jb-status[data-state="error"], .jb-source[data-state="error"] { color: var(--alert); }
.jb-rank .jb-rank__fail { color: var(--dim); }
.jb-rank .jb-rank__fail::before { display: none; }

.jb-btn { display: inline-flex; align-items: center; gap: .5em; border: 1px solid var(--sig); color: var(--sig); background: transparent; padding: .5em 1em; min-height: 2.5rem; text-decoration: none; cursor: pointer; font-weight: 500; }
.jb-btn:hover { background: var(--sig); color: var(--on-sig); }
.jb-btn--solid { background: var(--sig); color: var(--on-sig); }
.jb-btn--solid:hover { background: transparent; color: var(--sig); }
.jb-btn[disabled] { opacity: .45; cursor: not-allowed; }
.jb-btn[disabled]:hover { background: transparent; color: var(--sig); }
.jb-linkbtn { background: none; border: 0; padding: 0; color: var(--sig); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: pointer; }

/* ---------------------------------------------------------------- hero */
.jb-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: clamp(2rem, 6vw, 4.5rem) 0 1rem; }
.jb-hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
:root[data-display="lcd"] .jb-hero__rain { opacity: .28; }
.jb-hero__main, .jb-readout { position: relative; min-width: 0; }
.jb-hero__main { container-type: inline-size; }
.jb-hero h1 { font-family: var(--display); font-stretch: 100%; font-weight: 900; font-size: clamp(2rem, 8.2vw, 6rem); font-size: clamp(2rem, 13.2cqi, 6rem); line-height: .92; letter-spacing: -.02em; color: var(--sig); text-wrap: balance; margin-bottom: 1.4rem; }
.jb-hero__lede { font-size: 1rem; max-width: 60ch; }
.jb-hero__press { color: var(--dim); font-size: .8rem; margin-top: 1.6rem; }
.jb-hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 0; }

.jb-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; border: 1px solid var(--sig); background: var(--pane); padding: .55rem .9rem; margin-top: 1.8rem; max-width: 46rem; }
.jb-prompt:focus-within { outline: 2px solid var(--data); outline-offset: 2px; }
.jb-prompt__ps1 { color: var(--sig); font-weight: 600; white-space: nowrap; }
.jb-prompt input { flex: 1 1 14rem; min-width: 0; background: transparent; border: 0; outline: 0; padding: .35rem 0; color: var(--data); caret-color: var(--data); caret-shape: block; font-size: 1rem; }
.jb-prompt input::placeholder { color: var(--dim); opacity: 1; }
.jb-prompt__status { color: var(--dim); font-size: .78rem; margin: .55rem 0 0; max-width: 46rem; }
.jb-results { max-width: 46rem; margin-top: .4rem; }
.jb-results li { border-bottom: 1px dashed var(--line); }
.jb-results a, .jb-results span { display: block; padding: .45rem 0; }
.jb-results strong { color: var(--data); font-weight: 600; }
.jb-results .jb-btn { margin: .6rem 0; }

.jb-readout { border: 1px solid var(--line); background: var(--pane); padding: 1.1rem 1.2rem 1rem; }
.jb-readout__title { font-size: .85rem; color: var(--dim); font-weight: 500; }
.jb-readout__big { margin: .2rem 0 .8rem; display: flex; flex-direction: column; }
.jb-num { font-family: var(--display); font-stretch: 100%; font-weight: 900; font-size: clamp(2.3rem, 4.6vw, 3.3rem); line-height: 1.05; color: var(--data); font-variant-numeric: tabular-nums; }
.jb-readout__unit { color: var(--text); }
.jb-leaders > div { display: flex; align-items: baseline; gap: .5em; padding: .12rem 0; }
.jb-leaders dt { color: var(--dim); }
.jb-leaders dt::after { content: ""; }
.jb-leaders > div::before { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--line); min-width: 1em; }
.jb-leaders dd { order: 2; color: var(--data); font-weight: 600; font-variant-numeric: tabular-nums; }
.jb-readout__sub { font-size: .85rem; color: var(--dim); font-weight: 500; margin: 1rem 0 .3rem; }
.jb-sensors { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.jb-sensors li::before { content: ""; display: inline-block; width: .55em; height: .55em; background: var(--sig); margin-right: .5em; }
@media (max-width: 900px) { .jb-hero { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- controls and chips */
.jb-controls { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin: 1.2rem 0 .9rem; }
.jb-controls label { display: flex; flex-direction: column; gap: .25rem; color: var(--dim); font-size: .78rem; min-width: 0; }
.jb-controls__grow { flex: 1 1 14rem; }
.jb-controls select, .jb-controls input { background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: .5rem .6rem; min-height: 2.5rem; border-radius: 0; max-width: 100%; font-size: .875rem; }
.jb-controls select:hover, .jb-controls input:hover { border-color: var(--sig); }
.jb-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .6rem; }
.jb-chip { display: inline-flex; align-items: center; gap: .45em; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: .3em .7em; min-height: 2.1rem; cursor: pointer; }
.jb-chip:hover { border-color: var(--sig); }
.jb-chip[aria-pressed="true"] { background: var(--sig); border-color: var(--sig); color: var(--on-sig); font-weight: 600; }
.jb-chip[aria-pressed="true"] .jb-chip__n { color: inherit; }
.jb-chip[data-empty="1"] { color: var(--dim); border-style: dashed; }
.jb-chip__n { color: var(--data); font-variant-numeric: tabular-nums; }
.jb-chips--small .jb-chip { font-size: .78rem; min-height: 1.9rem; }

/* ---------------------------------------------------------------- feed */
.jb-feed { margin-top: .6rem; }
.jb-feed h3 { display: flex; align-items: center; gap: .6em; font-size: .9rem; color: var(--data); padding: 1rem 0 .35rem; border-bottom: 1px solid var(--line); }
.jb-feed h3 small { color: var(--dim); font-weight: 400; font-size: .78rem; }
.jb-feed h4 { margin: 0; font-size: .8rem; font-weight: 500; color: var(--dim); padding: .7rem 0 .1rem; }
.jb-feed li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .2rem .6rem; align-items: baseline; padding: .42rem 0; border-bottom: 1px dashed var(--line); }
.jb-feed li .jb-ico { color: var(--dim); align-self: center; }
.jb-feed li a { text-decoration: none; color: var(--text); }
.jb-feed li a:hover { color: var(--sig); text-decoration: underline; }
.jb-feed__meta { color: var(--dim); font-size: .76rem; white-space: nowrap; }
@media (max-width: 560px) { .jb-feed li { grid-template-columns: 1.4rem minmax(0, 1fr); } .jb-feed__meta { grid-column: 2; } }
.jb-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.jb-pager[hidden] { display: none; }
.jb-pager span { color: var(--dim); text-align: center; }
.jb-notice { border: 1px dashed var(--data); padding: 1rem 1.1rem; margin-top: 1rem; }
.jb-notice p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- map teaser: ranked tables with magnitude bars */
.jb-map__lead { display: flex; flex-wrap: wrap; gap: 0 2rem; align-items: center; justify-content: space-between; }
.jb-map__lead p { flex: 1 1 26rem; }
.jb-map__lead p:last-child { flex: 0 0 auto; }
.jb-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.6rem 2.2rem; margin-top: 1rem; }
.jb-ranks h3 { font-size: .9rem; color: var(--sig); padding-bottom: .4rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.jb-rank li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: .22rem .4rem; isolation: isolate; }
.jb-rank li::before { content: ""; position: absolute; inset: 2px auto 2px 0; width: calc(var(--w, 0) * 100%); min-width: 2px; background: var(--bar); z-index: -1; }
.jb-rank span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-rank span:last-child { color: var(--data); font-variant-numeric: tabular-nums; font-weight: 500; flex: none; }

/* ---------------------------------------------------------------- projects: an ls -l style listing */
.jb-ls { border-top: 1px solid var(--line); margin-top: .6rem; }
.jb-ls > li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) 7.5rem 5.2rem; gap: .1rem 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.jb-ls > li[hidden] { display: none; }
.jb-ls__stars { color: var(--data); font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; white-space: nowrap; }
.jb-ls__stars[data-zero="1"] { color: var(--dim); font-weight: 400; }
.jb-ls__main { min-width: 0; overflow-wrap: anywhere; }
.jb-ls__name { font-weight: 600; font-size: .95rem; }
.jb-ls__desc { display: block; color: var(--text); margin: .1rem 0 0; max-width: 78ch; }
.jb-ls__lang, .jb-ls__date { color: var(--dim); font-size: .78rem; white-space: nowrap; }
.jb-ls__date { text-align: right; }
.jb-flag { display: inline-block; font-size: .72rem; border: 1px solid var(--line); color: var(--dim); padding: 0 .45em; margin-left: .5em; vertical-align: .1em; font-weight: 400; overflow-wrap: anywhere; }
.jb-flag--fork { border-style: dashed; }
.jb-flag--archived { border-color: var(--alert); color: var(--alert); }
.jb-flag--original { border-color: var(--sig); color: var(--sig); }
.jb-ls details { margin-top: .35rem; }
.jb-ls summary { color: var(--dim); cursor: pointer; font-size: .78rem; width: fit-content; }
.jb-ls summary:hover { color: var(--sig); }
.jb-ls__more { border-left: 2px solid var(--line); padding: .3rem 0 .3rem .9rem; margin: .5rem 0 .2rem; color: var(--dim); font-size: .8rem; }
.jb-ls__more p { margin-bottom: .5em; }
.jb-ls__more pre { white-space: pre-wrap; margin: .5rem 0 0; color: var(--text); max-height: 22rem; overflow: auto; }
@media (max-width: 720px) {
  .jb-ls > li { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .jb-ls__lang, .jb-ls__date { grid-column: 2; text-align: left; display: inline; }
}

/* ---------------------------------------------------------------- tools */
.jb-devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.jb-device { border: 1px solid var(--line); background: var(--bg); padding: 1.1rem; display: flex; flex-direction: column; min-width: 0; }
.jb-device h3 { font-size: 1rem; color: var(--sig); margin: .9rem 0 .4rem; }
.jb-device p { color: var(--dim); }
.jb-device p:has(.jb-btn) { margin-top: auto; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.jb-device__art { width: 6rem; height: 4rem; fill: none; stroke: var(--data); stroke-width: 2; stroke-linejoin: round; }
.jb-device__art rect:first-child, .jb-device__art ellipse:first-child { stroke: var(--sig); }
.jb-details summary { cursor: pointer; color: var(--sig); padding: .35rem 0; }
.jb-details[open] summary { margin-bottom: .3rem; }
.jb-cmds > div { display: grid; grid-template-columns: minmax(0, 1fr); padding: .3rem 0; border-top: 1px dashed var(--line); }
.jb-cmds dt { color: var(--data); }
.jb-cmds dd { color: var(--dim); font-size: .8rem; }

.jb-links > div { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); gap: .1rem 1.5rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.jb-links dt { font-weight: 600; }
.jb-links dd { color: var(--dim); max-width: 78ch; }
.jb-links--stack > div, .jb-links > div:only-child { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .jb-links > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- reports, other work */
.jb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 1.6rem 2.4rem; }
.jb-cols h3 { font-size: .95rem; color: var(--sig); padding-bottom: .45rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; display: flex; align-items: center; gap: .5em; }
.jb-cols p { color: var(--dim); }
.jb-mini li { padding: .32rem 0; border-bottom: 1px dashed var(--line); }
.jb-mini + p { margin-top: .8rem; }
.jb-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 2.4rem; }
.jb-types li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6em; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.jb-types .jb-ico { align-self: center; color: var(--dim); }
.jb-types b { font-weight: 500; flex: 1; min-width: 0; }
.jb-types span { color: var(--data); font-variant-numeric: tabular-nums; }
.jb-types small { color: var(--dim); font-size: .74rem; flex-basis: 100%; padding-left: 2.1em; }

/* ---------------------------------------------------------------- data */
.jb-tablewrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); }
.jb-table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: .82rem; }
.jb-table th, .jb-table td { text-align: left; vertical-align: top; padding: .5rem .8rem; border-bottom: 1px dashed var(--line); font-weight: 400; }
.jb-table thead th { color: var(--dim); border-bottom: 1px solid var(--line); background: var(--bg); }
.jb-table tbody th { color: var(--sig); }
.jb-table tbody tr:last-child > * { border-bottom: 0; }
.jb-table td:nth-child(2), .jb-table td:nth-child(4) { white-space: nowrap; color: var(--dim); }
.jb-code { background: var(--bg); border: 1px solid var(--line); padding: .9rem 1rem; overflow-x: auto; margin: 0 0 1rem; color: var(--text); }
.jb-code span { color: var(--data); }

/* ---------------------------------------------------------------- about */
.jb-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem 3rem; }
.jb-contact li { display: flex; flex-wrap: wrap; gap: 0 1em; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.jb-contact span { color: var(--dim); min-width: 5.5rem; }
.jb-contact { margin-bottom: 1.2rem; }
.jb-faq .jb-details { border-bottom: 1px dashed var(--line); padding: .3rem 0; }
.jb-faq summary { font-weight: 600; }
.jb-faq p { color: var(--dim); margin: 0 0 .6rem; }

/* ---------------------------------------------------------------- footer */
.jb-foot { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 2.5rem; background: var(--pane); }
.jb-foot__in { width: min(var(--maxw), 100% - var(--dock)); margin: 0 auto 0 max(0px, (100% - var(--dock) - var(--maxw)) / 2); padding: 0 var(--gut); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); gap: 1.5rem 2rem; }
.jb-foot h2 { font-size: .85rem; color: var(--dim); font-weight: 500; margin-bottom: .5rem; }
.jb-foot li { padding: .22rem 0; }
.jb-foot__mark { width: min(var(--maxw), 100% - var(--dock)); margin: 2rem auto 0 max(0px, (100% - var(--dock) - var(--maxw)) / 2); padding: 0 var(--gut); color: var(--sig); font-size: 1.15rem; }

/* ---------------------------------------------------------------- edge gadgets (BASIO, BROKIA, tamagotchi, terminal)
   The gadgets keep their shipped CSS (widgets/gadgets.css). This layer only does three things:
   reserves a dock on the right so the peeking gadgets never sit on content, gives the gadgets the
   font context they have on the live site, and tucks them tighter on small screens. */
:root { --dock: 0px; --termbar: 0px; }
:root.jb-gadgets-on { --dock: 44px; --termbar: 24px; }
@media (min-width: 700px) { :root.jb-gadgets-on { --dock: 96px; } }
@media (min-width: 1100px) { :root.jb-gadgets-on { --dock: 244px; } }
body { padding-bottom: var(--termbar); }
#jb-gadgets { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; font-stretch: normal; font-weight: 400; line-height: normal; letter-spacing: normal; color: #f0f0f0; overflow-wrap: normal; }
/* From 1100px up the gadgets sit exactly where the live CSS puts them (BASIO right -250px, BROKIA right -145px).
   Below that the resting peek is tucked in so it fits the narrower dock. Only the resting state is touched:
   the slid-out, dragged and fullscreen states keep the shipped rules. */
@media (max-width: 1099px) {
  #basio-wrapper:not(.basio-wrapper-active):not(.basio-fullscreen) { right: -345px; transform: translateY(-50%) rotate(-45deg) scale(.85); }
  #brokia-wrapper:not(.brokia-wrapper-active):not(.brokia-fullscreen) { right: -139px; transform: rotate(-35deg) scale(.75); }
  #jb-gadgets .tamagotchi { right: 4px; transform: scale(.7); transform-origin: bottom right; }
}
@media (max-width: 699px) {
  #basio-wrapper:not(.basio-wrapper-active):not(.basio-fullscreen) { right: -349px; transform: translateY(-50%) rotate(-45deg) scale(.7); }
  #brokia-wrapper:not(.brokia-wrapper-active):not(.brokia-fullscreen) { right: -152px; transform: rotate(-35deg) scale(.6); }
  #jb-gadgets .tamagotchi { right: 1px; bottom: 28px; transform: scale(.34); }
}
#jb-gadgets .tamagotchi.jb-point { outline: 3px solid var(--data); outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .jb-bar, .jb-hero__rain, #jb-gadgets, body::after { display: none; }
}

/* Other work: one balanced flow over up to three columns (2026-12-01), instead of a grid
   where one long column left empty space beside the shorter ones. */
#other .jb-cols { display: block; columns: 3 17.5rem; column-gap: 2.4rem; }
#other .jb-cols > section { display: block; margin: 0 0 1.4rem; }
#other .jb-cols h3 { break-after: avoid; break-inside: avoid; }
#other .jb-links--stack > div { break-inside: avoid; }
