/* isitdns wiki -- "Bench notes" direction (2026-07-26): a well-set
   engineering datasheet. Two voices only: prose is quiet sans on white;
   ALL chrome labels (nav heads, table headers, callout kinds, copy button,
   prev/next, rail head, eyebrow) speak one mono micro-caps voice -- the
   terminal identity of the product, minus its color. Headings anchor on a
   short ink tick, not full-width hairlines. Color stays semantic: orange is
   navigation, lime is headings/accent, cyan is inline code, gray/ink is
   everything else. Space groups; boxes do not. Self-contained. */
:root {
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Terminal-neon, inherited verbatim from the vault's publish.css so the hosted
     wiki and Neal's Obsidian Publish theme are the same surface. Orange #ff6a00
     is navigation/links, lime is accent, cyan is inline code -- his semantics.
     (Gold proper, #ffc24b, is reserved for OpenDNS on the fleet map.) */
  --bg:        #0a0e14;
  --bg-soft:   #0e131c;
  --bg-code:   #0e131c;
  --bg-elev:   #121a25;
  --bg-hover:  #18222e;
  --border:    #1b2430;
  --border-soft:#151d27;

  --text:      #d6e2ea;
  --text-dim:  #8595a4;
  --text-vdim: #5a6b7a;

  --link:      #ff6a00;
  --link-hover:#b6ff00;
  --lime:      #b6ff00;
  --lime-soft: #cdff5e;
  --lime-bg:   rgba(182,255,0,.07);
  --lime-line: #b6ff00;
  --cyan:      #00e5ff;
  --ok:        #9fe000;
  --warn:      #ff6a00;
  --bad:       #ff2d95;
  --purple:    #b347ff;

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--mono);
  font-size: 15.5px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Faint scanline overlay -- the main site's body::before, same as publish.css.
   Sits above the page, below the sticky topbar (z-index 20). */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 10;
  background: repeating-linear-gradient(
    0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  /* publish.css semantics: cyan is inline code / ports / protocols */
  color: var(--cyan);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08em 0.4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
pre {
  background: var(--bg-code);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime-line);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  overflow-x: auto;
  white-space: pre;
  box-shadow: var(--shadow-sm);
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: 0.86rem; line-height: 1.6; white-space: pre; }
.codewrap { position: relative; margin: 1.35rem 0; }
/* a command and its output form one exhibit: close the gap between
   back-to-back code blocks so the pair reads as a unit */
.codewrap + .codewrap { margin-top: -0.55rem; }
.copy-btn {
  position: absolute; top: 0.55rem; right: 0.55rem;
  font: 600 0.66rem var(--mono); text-transform: uppercase;
  letter-spacing: 0.08em; cursor: pointer;
  color: var(--text-dim); background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: 6px; padding: 0.24rem 0.6rem;
}
.copy-btn:hover { color: var(--link); border-color: var(--link); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.65rem max(1.25rem, calc((100% - 1380px) / 2));
  background: rgba(10,14,20,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1rem; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand .q { color: var(--link); }
.topbar .crumbs { color: var(--text-vdim); font-size: 0.85rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .crumbs a { color: var(--text-vdim); }
.topbar .crumbs a:hover { color: var(--link); }
.topbar .crumbs .sep { margin: 0 0.35rem; color: var(--border); }
.topbar .back { margin-left: auto; font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 210px;
  gap: 2.2rem;
  max-width: 1380px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem;
}

/* The rail is a list of labels, one line each. Everything in it is the same
   weight and the same colour on purpose: the section heads do the grouping and
   the active row does the "you are here", so nothing else has to compete. */
.sidebar { position: sticky; top: 4.2rem;
  max-height: calc(100vh - 5rem); overflow-y: auto; align-self: start;
  padding-right: 0.5rem; border-right: 1px solid var(--border-soft);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.nav-filter { margin: 0 0 1rem; }
.nav-filter input {
  width: 100%; box-sizing: border-box;
  padding: 0.34rem 0.55rem; border-radius: 5px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); font: 500 0.78rem var(--mono);
  -webkit-appearance: none; appearance: none;
}
.nav-filter input::placeholder { color: var(--text-vdim); }
.nav-filter input:focus { outline: none; border-color: var(--lime); }
.nav-empty { margin: 0 0 1rem; padding: 0 0.5rem;
  font: 500 0.78rem var(--mono); color: var(--text-vdim); }
.nav-group { margin-bottom: 1.35rem; }
.nav-head {
  font: 700 0.66rem var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--lime); margin: 0 0 0.4rem;
  padding-bottom: 0.28rem; border-bottom: 1px solid var(--border);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  display: block; padding: 0.26rem 0.5rem; border-radius: 5px;
  font: 500 0.78rem/1.45 var(--mono);
  color: var(--text-dim); letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar li a:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.sidebar li a.active { background: var(--lime-bg); color: var(--lime); font-weight: 700;
  box-shadow: inset 2px 0 0 var(--lime); }

.onthis { position: sticky; top: 4.2rem; align-self: start; font-size: 0.84rem;
  max-height: calc(100vh - 5rem); overflow-y: auto; }
.onthis h4 {
  font: 700 0.66rem var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-vdim); margin: 0 0 0.55rem;
}
.onthis ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border-soft); }
.onthis li a {
  display: block; padding: 0.22rem 0 0.22rem 0.85rem; color: var(--text-dim);
  border-left: 2px solid transparent; margin-left: -2px; line-height: 1.4;
  overflow-wrap: anywhere;
}
.onthis li a:hover { color: var(--link); border-left-color: var(--link); text-decoration: none; }

article { min-width: 0; max-width: 76ch; }
/* the section eyebrow: quiet identity above every title */
.eyebrow { font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--link);
  margin-bottom: 0.4rem; }
/* the page lede (first blockquote after the title) is a standfirst:
   larger, quieter ink on bare paper with a single orange rule. It answers
   the page's question in two lines before the chrome begins. */
article h1 + blockquote {
  background: transparent; border-left: 3px solid var(--link);
  border-radius: 0; box-shadow: none;
  margin: 1.3rem 0 2.3rem; padding: 0.15rem 0 0.15rem 1.25rem;
  color: var(--text-dim); font-size: 1.13rem; line-height: 1.65;
}
article h1 { font-size: 2.35rem; line-height: 1.15; letter-spacing: -0.025em;
  font-weight: 800; margin: 0.25rem 0 1.1rem;
  /* publish.css heading ladder: h1 lime, h2 lime-soft, h3 gold, h4 green */
  color: var(--lime); }
/* Code-block tokens. Record type and flags carry the loud colour because they
   are what you scan a dig block for; the server and addresses take the orange
   used for IPs and CLI everywhere else. */
pre code .t-type { color: var(--bad); font-weight: 700; }
pre code .t-flag { color: var(--bad); }
pre code .t-srv  { color: var(--warn); font-weight: 700; }
pre code .t-ip   { color: var(--warn); }

/* record-type designation in the title speaks mono, like the nav does */
article h1 .tt { font-family: var(--mono); font-size: 0.94em;
  font-weight: 700; letter-spacing: -0.02em; }
/* h2: no full-width hairline slicing the page into stripes; a short ink
   tick above the words anchors the eye at every section when scrolling */
article h2 {
  font-size: 1.42rem; line-height: 1.3; letter-spacing: -0.015em;
  font-weight: 700; margin: 3.2rem 0 0.9rem;
  color: var(--lime-soft);
}
article h2::before {
  content: ""; display: block; width: 2.25rem; height: 3px;
  border-radius: 2px; background: var(--lime); margin-bottom: 0.85rem;
}
article h3 { font-size: 1.15rem; font-weight: 700; margin: 2.2rem 0 0.6rem;
  color: var(--link); }
article h4 { font: 700 0.78rem var(--mono); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ok); margin: 1.8rem 0 0.5rem; }
article p { margin: 0 0 1rem; }
article ul, article ol { margin: 0 0 1rem; padding-left: 1.5rem; }
article li { margin-bottom: 0.35rem; }
article li::marker { color: var(--text-vdim); }
.hlink { opacity: 0; margin-left: 0.4rem; font-size: 0.85em; color: var(--text-vdim); }
h2:hover .hlink, h3:hover .hlink, h4:hover .hlink { opacity: 1; }
blockquote {
  margin: 1.35rem 0; padding: 0.75rem 1.1rem;
  background: var(--bg-soft); border-left: 3px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-dim);
}
blockquote p:last-child { margin-bottom: 0; }
/* the plain-English readout: a blockquote right under a code block narrates
   that record like a human would say it. Unlabeled by design. */
.codewrap + blockquote {
  background: none; border-left: none; border-radius: 0;
  margin: -0.5rem 0 1.6rem; padding: 0 0 0 1.55rem; position: relative;
  color: var(--text-dim); font-size: 1.02rem;
}
.codewrap + blockquote::before {
  content: "↳"; position: absolute; left: 0.15rem; top: -0.05rem;
  font-family: var(--mono); font-weight: 700; color: var(--lime);
}
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.5rem 0; }
strong { font-weight: 650; }

.callout { margin: 1.35rem 0; padding: 0.9rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-soft); }
.callout .callout-title { font: 700 0.7rem var(--mono); letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0 0 0.35rem; }
.callout-tip { border-color: rgba(159,224,0,.35); background: rgba(159,224,0,.06); }
.callout-tip .callout-title { color: var(--ok); }
.callout-note { border-color: rgba(0,229,255,.30); background: rgba(0,229,255,.06); }
.callout-note .callout-title { color: var(--link); }
.callout-warning, .callout-caution { border-color: rgba(255,106,0,.35); background: rgba(255,106,0,.07); }
.callout-warning .callout-title, .callout-caution .callout-title { color: var(--warn); }

.table-wrap { overflow-x: auto; margin: 1.35rem 0; border: 1px solid var(--border);
  border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th { text-align: left; background: var(--bg-soft); color: var(--text-dim);
  font: 600 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--border); }
td { padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.022); }
tr:last-child td { border-bottom: 0; }
/* fact tables open with an intentionally blank header row in the source;
   hide the empty strip instead of rendering a gray artifact */
thead:not(:has(th:not(:empty))) { display: none; }

.pagenav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  margin-top: 3rem; max-width: 76ch; }
.pagenav a { display: block; padding: 0.8rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow-sm); }
.pagenav a:hover { border-color: var(--link); text-decoration: none; }
.pagenav .dir { display: block; font: 700 0.66rem var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-vdim);
  margin-bottom: 0.2rem; }
.pagenav .pn-title { color: var(--link); font-weight: 600; }
.pagenav .pn-next { text-align: right; grid-column: 2; }

/* ---------- animations ---------- */
.anim { margin: 1.6rem 0; padding: 1rem 0.5rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-soft); }
.anim svg { display: block; width: 100%; height: auto; }
.aj-wire { stroke: var(--border); stroke-width: 2; }
.aj-node { fill: var(--text); }
.aj-label { fill: var(--text); font: 700 13px var(--mono); text-anchor: middle; }
.aj-sub { fill: var(--text-vdim); font: 12px var(--sans); text-anchor: middle; }
.aj-q { fill: var(--link); }
.aj-a { fill: var(--ok); }
.aj-cap { font: 12px var(--sans); text-anchor: middle; }
.aj-cap-q { fill: var(--link); }
.aj-cap-a { fill: var(--ok); }
@media (prefers-reduced-motion: reduce) {
  .anim animateMotion { display: none; }
  .aj-q, .aj-a { display: none; }
}

footer.site { border-top: 1px solid var(--border-soft); margin-top: 2rem;
  padding: 1.2rem max(1.25rem, calc((100% - 1380px) / 2));
  color: var(--text-vdim); font-size: 0.85rem; }

.zone-notice { margin: 0 0 1.2rem; padding: 0.8rem 1.1rem; border-radius: var(--radius);
  border: 1px solid rgba(255,106,0,.35); background: rgba(255,106,0,.07); color: var(--text-dim); font-size: 0.92rem; }

/* Drop the right rail before it can be clipped by the window edge rather than
   at the width where it only just fits — 1150 left it hanging off a 1370px
   browser window. */
@media (max-width: 1280px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); }
  .onthis { display: none; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 1rem; }
  .sidebar { position: static; max-height: none; border-right: 0;
    border-bottom: 1px solid var(--border); padding-bottom: 0.8rem; order: 2; }
  article { order: 1; }
  .topbar .back { display: none; }
  .pagenav { grid-template-columns: 1fr; }
  .pagenav .pn-next { grid-column: 1; }
}
