/* sphinxstack — quiet wiki. White, dense, flat. Blue links, hairline
   rules, no accent system. Mono only for literal code and commands. */

:root {
  --ink: #202122;
  --soft: #54595d;
  --muted: #72777d;
  --hair: #c8ccd1;
  --hair-lt: #eaecf0;
  --blue: #0645ad;
  --blue-visited: #0b0080;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }

/* chrome */
header { border-bottom: 1px solid var(--hair); }
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
nav a {
  font-size: 0.92rem;
  color: var(--blue);
  text-decoration: none;
  margin-left: 1.1rem;
}
nav a:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--hair); margin-top: 3rem; }
footer .wrap {
  padding-top: 0.9rem;
  padding-bottom: 1.6rem;
  font-size: 0.85rem;
  color: var(--soft);
}

main.wrap { padding-top: 1.5rem; padding-bottom: 1rem; }

/* type */
h1 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--hair);
}
h1.hero {
  font-size: 2.3rem;
  font-weight: 700;
  border-bottom: 0;
  margin-top: 0.8rem;
}
h2 {
  font-size: 1.3rem;
  font-weight: 600;
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--hair);
  margin: 2.2rem 0 0.4rem;
}
h3 { font-size: 1rem; font-weight: 700; margin: 1.2rem 0 0.3rem; }
p { margin: 0.55rem 0; }
ul, ol { margin: 0.55rem 0; padding-left: 1.5rem; }
li { margin: 0.3rem 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
main a:visited { color: var(--blue-visited); }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #f8f9fa;
  border: 1px solid var(--hair-lt);
  border-radius: 2px;
  padding: 0.05em 0.3em;
}

/* hero */
.lede { font-size: 1.08rem; max-width: 46rem; }
.statline { font-size: 0.9rem; color: var(--muted); margin: 0.9rem 0 0.2rem; }
.statline b { color: var(--ink); font-weight: 700; }
.how { font-size: 1.02rem; max-width: 46rem; }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 1rem; }
.crumb a { color: var(--muted); }
.payoff { font-size: 1.02rem; color: var(--soft); max-width: 46rem; }

/* catalog: columned index */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  columns: 2 22rem;
  column-gap: 3.5rem;
}
.cat-list li { break-inside: avoid; margin: 0 0 0.8rem; }
.cat-list a { font-weight: 600; }
.cat-list .d {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--soft);
}
.say { font-style: italic; color: var(--muted); }

/* dense text lists */
ul.dense { list-style: none; padding-left: 0; margin-top: 0.4rem; }
ul.dense li { padding: 0.35rem 0; border-bottom: 1px solid var(--hair-lt); margin: 0; }

/* install panel */
.installbox {
  border: 1px solid var(--hair);
  background: #f8f9fa;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}
.installbox p { margin: 0.4rem 0; }
.installhead { font-size: 0.98rem; }
.installrow code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.86rem;
  background: #202122;
  color: #f2f0ea;
  border: 0;
  border-radius: 2px;
  padding: 0.5em 0.7em;
  margin: 0.2rem 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}
.installrow code::before { content: "$ "; color: #a2a9b1; }
.spawnnote { font-size: 0.85rem; color: var(--soft); }
.copybtn {
  font: 600 0.78rem/1 -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  padding: 0.4em 0.7em;
  margin-left: 0.5em;
  cursor: pointer;
  vertical-align: middle;
}
.copybtn:hover { background: #f0f1f2; }
.skilltext { margin: 0.9rem 0 1.4rem; }
.skilltext summary { cursor: pointer; font-size: 0.9rem; color: var(--soft); }
.skilltext pre {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.45;
  background: #f8f9fa;
  border: 1px solid var(--hair-lt);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* brand tile */
.tile {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--ink);
  padding: 0.3em 0.35em;
  margin-right: 0.5em;
  vertical-align: 0.05em;
}
.tile-sm { font-size: 0.72em; padding: 0.25em 0.3em; margin-right: 0.3em; }

@media (max-width: 600px) {
  h1.hero { font-size: 1.7rem; }
  nav a { margin-left: 0; margin-right: 0.9rem; }
}

.takebtn { font-size: 0.92rem; padding: 0.55em 1em; margin-left: 0; }


/* project thumbnails: line drawings */
.withthumb { display: flex; gap: 0.8rem; align-items: flex-start; }
.withthumb .t { min-width: 0; }
.thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 63px;
  border: 1px solid var(--hair-lt);
  background: #fff;
  margin-top: 0.15rem;
  padding: 4px;
}

.lv { font-weight: 700; color: var(--ink); }

img.thumb {
  object-fit: cover;
  height: 63px;
  padding: 0;
}

.tellline {
  font-style: italic;
  background: #eef1f6;
  border-radius: 3px;
  padding: 0.2em 0.5em;
}

/* article pages: centered reading column */
main.article { max-width: 56rem; }
.article p, .article ul, .article ol { max-width: 47rem; }
.article .anno-notes { max-width: 26rem; }

/* page head: two-column grid, image pinned right */
.pagehead {
  display: grid;
  grid-template-columns: 1fr 236px;
  gap: 0 2.2rem;
  align-items: start;
}
.pageimg {
  width: 236px;
  height: 177px;
  object-fit: cover;
  border: 1px solid var(--hair);
  background: #fff;
  padding: 3px;
  margin-top: 0.5rem;
  grid-column: 2;
  grid-row: 1 / span 2;
}
.pagehead h1, .pagehead .payoff { grid-column: 1; }
@media (max-width: 640px) {
  .pagehead { display: block; }
  .pageimg { width: 100%; height: auto; margin: 0.2rem 0 0.8rem; }
}

/* take-box rows */
.pathrow { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 0.7rem 0; }
.pathnote { font-size: 0.9rem; color: var(--soft); }
.tinyrow { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0.1rem; }

/* how-it-works steps */
.steps { font-size: 1.02rem; max-width: 46rem; }
.steps li { margin: 0.7rem 0; }

/* chat mock */
.chatmock { max-width: 34rem; margin: 1.2rem 0; }
.cm {
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  margin: 0.45rem 0;
  font-size: 0.95rem;
  line-height: 1.45;
  width: fit-content;
  max-width: 90%;
}
.cm-user {
  background: #e8eefc;
  border: 1px solid #d4defa;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.cm-agent {
  background: #f4f4f2;
  border: 1px solid var(--hair-lt);
  border-bottom-left-radius: 4px;
}
.cm-paste { color: var(--muted); font-style: italic; }
.cm-note { font-size: 0.8rem; color: var(--muted); margin: 0.2rem 0 0; }

/* worked example: the artifact on the page */
.example-wrap { display: flex; gap: 2.2rem; align-items: flex-start; margin: 1.2rem 0; }
.sheet {
  position: relative;
  flex: 0 1 470px;
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: 0 1px 5px rgba(0,0,0,0.09);
  padding: 1.6rem 1.8rem 1.8rem;
  font-size: 0.74rem;
  line-height: 1.5;
}
.sheet-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #f0f1f3;
  border: 1px solid var(--hair);
  font-size: 0.7rem;
  color: var(--soft);
  padding: 0.15em 0.6em;
}
.rz-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.rz-contact { color: var(--soft); margin-bottom: 0.6rem; }
.rz-h {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--hair);
  margin: 0.9rem 0 0.35rem;
  padding-bottom: 0.15rem;
}
.rz-item { margin: 0.35rem 0; }
.rz-sub { color: var(--soft); }
.rz-link { color: var(--blue); }
.rz-hot {
  background: #eef3fc;
  outline: 4px solid #eef3fc;
  border-radius: 1px;
}
.anno-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  width: 1.15rem;
  height: 1.15rem;
  line-height: 1.15rem;
  text-align: center;
  border-radius: 50%;
  vertical-align: 0.1em;
  margin-left: 0.3em;
}
.anno-notes {
  flex: 1;
  min-width: 15rem;
  max-width: 26rem;
  counter-reset: anno;
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
}
.anno-notes li {
  position: relative;
  padding-left: 2rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.anno-notes li::before {
  counter-increment: anno;
  content: counter(anno);
  position: absolute;
  left: 0;
  top: 0.1rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  width: 1.3rem;
  height: 1.3rem;
  line-height: 1.3rem;
  text-align: center;
  border-radius: 50%;
}
@media (max-width: 760px) {
  .example-wrap { flex-direction: column; }
  .sheet { flex: none; width: 100%; }
}

/* interactive interview demo */
.chatdemo { max-width: 36rem; margin: 1rem 0 1.4rem; }
.chatdemo .cd-hide { display: none; }
.cd-controls { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem; }
.cd-next { margin-left: 0; }

/* example tabs */
.tabbar { margin: 0.9rem 0 0; border-bottom: 1px solid var(--hair); }
.tabbtn {
  font: 600 0.92rem/1 -apple-system, "Segoe UI", sans-serif;
  color: var(--blue);
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 0.5em 0.9em;
  cursor: pointer;
  margin-bottom: -1px;
}
.tabbtn.on {
  color: var(--ink);
  background: #fff;
  border-color: var(--hair);
  border-bottom: 1px solid #fff;
}
.tabpane { padding-top: 0.4rem; }
.tabpane.cd-hide { display: none; }

/* anatomy of a line */
.anatomy { max-width: 46rem; margin: 1rem 0 1.4rem; }
.an-line {
  border: 1px solid var(--hair);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}
.an-seg { padding-bottom: 2px; }
.an-a { border-bottom: 3px solid #0645ad; font-weight: 700; }
.an-b { border-bottom: 3px solid #7fa3e0; }
.an-c { border-bottom: 3px solid #b7c9ea; color: var(--blue); }
.an-d { border-bottom: 3px dotted #9aa7bd; color: var(--soft); }
.an-legend { list-style: none; padding: 0; margin: 0.7rem 0 0; }
.an-legend li { margin: 0.35rem 0; font-size: 0.92rem; }
.an-key {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  border-radius: 50%;
  margin-right: 0.45rem;
}
.an-key.an-a { background: #0645ad; border: 0; }
.an-key.an-b { background: #7fa3e0; border: 0; }
.an-key.an-c { background: #b7c9ea; color: var(--ink); border: 0; }
.an-key.an-d { background: #9aa7bd; border: 0; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--hair-lt); padding: 0.45rem 0; max-width: 46rem; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 0.5rem 0 0.3rem; color: var(--soft); }

/* mini card rows */
.cardrow { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.7rem 0 1.2rem; }
.mini {
  flex: 0 1 200px;
  border: 1px solid var(--hair-lt);
  padding: 0;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.9rem;
}
.mini img { display: block; width: 100%; height: 110px; object-fit: cover; }
.mini span { display: block; padding: 0.45rem 0.6rem; }

/* one-click launch buttons */
.launchrow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.launch {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5em 1em;
  border-radius: 3px;
  text-decoration: none;
}
.launch:hover { background: #0a53c4; text-decoration: none; }
.launchnote { font-size: 0.85rem; color: var(--muted); }

/* homepage: working reference, not a marketing page */
.home-page .wrap { max-width: 72rem; }
.home-page main.wrap { padding-top: 0; padding-bottom: 0; }
.home-page footer { margin-top: 0; }
.home-page a:focus-visible,
.home-page button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wiki-home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.88fr);
  column-gap: 3.8rem;
  row-gap: 2rem;
  align-items: start;
  padding: 3.6rem 0 3.8rem;
  border-bottom: 1px solid var(--hair);
}
.wiki-home-lead > * { min-width: 0; }
.wiki-home-intro { grid-column: 1; grid-row: 1; }
.wiki-home-lead > .wiki-file { grid-column: 2; grid-row: 1 / span 2; }
.wiki-home-intro h1 {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font: 400 clamp(2.8rem, 5vw, 4.25rem)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}
.wiki-home-deck {
  max-width: 36rem;
  margin: 0 0 1.1rem;
  font: 400 1.25rem/1.5 Georgia, "Times New Roman", serif;
  color: #34383d;
}
.wiki-home-intro > p:not(.wiki-home-deck) { max-width: 38rem; font-size: 1rem; }
.wiki-home-contents {
  margin: 1.35rem 0 0;
  padding-left: 1.2rem;
  list-style: square;
}
.wiki-home-contents li { margin: 0.38rem 0; }
.wiki-home-thesis { color: var(--soft); }
.wiki-home-hero-anatomy { grid-column: 1; grid-row: 2; }
.wiki-home-hero-anatomy h2 {
  margin: 0;
  padding: 0 0 0.25rem;
  border-bottom: 1px solid var(--hair);
  font: 400 1.35rem/1.2 Georgia, "Times New Roman", serif;
}

.wiki-file {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: #fff;
}
.wiki-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--hair);
  background: #f8f9fa;
  font-size: 0.78rem;
}
.wiki-file-head strong { font-weight: 600; }
.wiki-example-brief { margin: 0; border-bottom: 1px solid var(--hair); }
.wiki-example-brief > div {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  border-top: 1px solid var(--hair-lt);
  font-size: 0.82rem;
}
.wiki-example-brief > div:first-child { border-top: 0; }
.wiki-example-brief dt { color: var(--muted); font-weight: 600; }
.wiki-example-brief dd { margin: 0; }
.wiki-example-method,
.wiki-example-proof { padding: 0.75rem; border-bottom: 1px solid var(--hair); }
.wiki-example-method h2,
.wiki-example-proof h2 {
  margin: 0 0 0.45rem;
  padding: 0;
  border: 0;
  font-size: 0.86rem;
  line-height: 1.35;
}
.wiki-example-method ol { margin: 0; padding: 0; list-style: none; counter-reset: example-step; }
.wiki-example-method li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  column-gap: 0.55rem;
  margin: 0;
  padding: 0.42rem 0;
  border-top: 1px solid var(--hair-lt);
  counter-increment: example-step;
  font-size: 0.8rem;
}
.wiki-example-method li::before {
  content: counter(example-step) ".";
  grid-row: 1 / span 2;
  color: var(--muted);
  font: 0.74rem/1.5 var(--mono);
}
.wiki-example-method li strong { font-weight: 600; }
.wiki-example-method li span { grid-column: 2; color: var(--soft); line-height: 1.4; }
.wiki-example-proof ul { margin: 0; padding-left: 1.1rem; font-size: 0.8rem; }
.wiki-example-proof li { margin: 0.28rem 0; }
.wiki-file-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
}
.wiki-text-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}
.wiki-text-button:hover { text-decoration: underline; }
.wiki-home-section { padding: 2.8rem 0 3.1rem; border-bottom: 1px solid var(--hair); }
.wiki-home-section > p { max-width: 48rem; color: var(--soft); }
.wiki-home-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--hair);
}
.wiki-home-heading h2,
.wiki-home-how h2,
.wiki-home-notes h2 {
  margin: 0;
  padding: 0 0 0.25rem;
  border: 0;
  font: 400 1.65rem/1.2 Georgia, "Times New Roman", serif;
}
.wiki-home-heading > a { font-size: 0.82rem; }
.wiki-home-basics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
}
.wiki-home-basics h2,
.wiki-home-stacking h2 {
  margin: 0;
  padding: 0 0 0.25rem;
  border-bottom: 1px solid var(--hair);
  font: 400 1.65rem/1.2 Georgia, "Times New Roman", serif;
}
.wiki-home-basics p { color: var(--soft); }
.wiki-skill-anatomy { margin: 0.5rem 0 0; }
.wiki-skill-anatomy > div {
  display: grid;
  grid-template-columns: 8.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--hair-lt);
  font-size: 0.84rem;
}
.wiki-skill-anatomy dt { font-weight: 600; }
.wiki-skill-anatomy dd { margin: 0; color: var(--soft); }
.wiki-home-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.6rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair-lt);
}
.wiki-home-index li {
  min-width: 0;
  margin: 0;
  padding: 0.75rem 0 0.85rem;
  border-bottom: 1px solid var(--hair-lt);
}
.wiki-home-description { display: block; color: var(--soft); font-size: 0.82rem; line-height: 1.4; }
.wiki-home-proof {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.wiki-home-shelves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.4rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--hair-lt);
}
.wiki-home-shelf {
  min-width: 0;
  padding: 0.8rem 0 0.9rem;
  border-bottom: 1px solid var(--hair-lt);
}
.wiki-home-shelf h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}
.wiki-home-shelf h3 a { color: var(--ink); }
.wiki-home-shelf > p {
  min-height: 2.6em;
  margin: 0 0 0.65rem;
  color: var(--soft);
  font-size: 0.76rem;
  line-height: 1.35;
}
.wiki-home-shelf ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.5;
}
.wiki-home-shelf li {
  margin: 0;
  padding: 0.38rem 0 0.42rem;
  border-top: 1px solid var(--hair-lt);
}
.wiki-home-shelf li span {
  display: block;
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.wiki-home-more {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
}

.wiki-home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
  border-top: 1px solid var(--hair-lt);
  border-bottom: 1px solid var(--hair-lt);
}
.wiki-home-project-lane {
  min-width: 0;
  padding: 0.9rem 1.6rem 1rem 0;
}
.wiki-home-project-lane + .wiki-home-project-lane {
  padding-left: 1.6rem;
  border-left: 1px solid var(--hair-lt);
}
.wiki-home-project-lane:last-child { padding-right: 0; }
.wiki-home-project-lane h3 {
  margin: 0 0 0.25rem;
  font: 400 1.05rem/1.25 Georgia, "Times New Roman", serif;
}
.wiki-home-project-lane p {
  min-height: 2.8em;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.wiki-home-project-lane ul { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; }
.wiki-home-project-lane li { margin: 0.26rem 0; }

.wiki-home-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hair-lt);
  border-left: 1px solid var(--hair-lt);
  counter-reset: skill-chain;
  list-style: none;
}
.wiki-home-chain li {
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border-right: 1px solid var(--hair-lt);
  border-bottom: 1px solid var(--hair-lt);
  counter-increment: skill-chain;
}
.wiki-home-chain li::before {
  content: counter(skill-chain) ".";
  display: block;
  margin-bottom: 0.28rem;
  color: var(--muted);
  font: 0.7rem/1 var(--mono);
}
.wiki-home-chain a { display: block; font-size: 0.84rem; font-weight: 600; }
.wiki-home-chain span { display: block; color: var(--muted); font-size: 0.75rem; }

.wiki-home-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.wiki-home-notes article { padding: 2.8rem 3rem 3.2rem 0; }
.wiki-home-notes article + article { padding-right: 0; padding-left: 3rem; border-left: 1px solid var(--hair); }
.wiki-home-notes p { max-width: 31rem; color: var(--soft); }

@media (max-width: 820px) {
  .wiki-home-lead { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 2.8rem 0; }
  .wiki-home-intro,
  .wiki-home-lead > .wiki-file,
  .wiki-home-hero-anatomy { grid-column: auto; grid-row: auto; }
  .wiki-home-basics { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .wiki-file { max-width: 35rem; }
  .wiki-home-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-home-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-home-project-grid { grid-template-columns: 1fr; }
  .wiki-home-project-lane { padding: 1rem 0; }
  .wiki-home-project-lane + .wiki-home-project-lane {
    padding-left: 0;
    border-top: 1px solid var(--hair-lt);
    border-left: 0;
  }
  .wiki-home-project-lane p { min-height: 0; }
}

@media (max-width: 620px) {
  .wiki-home-intro h1 { font-size: 2.75rem; }
  .wiki-home-deck { font-size: 1.12rem; }
  .wiki-home-index { grid-template-columns: 1fr; }
  .wiki-home-shelves { grid-template-columns: 1fr; }
  .wiki-home-chain { grid-template-columns: 1fr; }
  .wiki-home-heading { align-items: flex-end; }
  .wiki-file-actions { gap: 0.65rem 0.9rem; }
  .wiki-home-notes { grid-template-columns: 1fr; }
  .wiki-home-notes article { padding: 2.6rem 0; }
  .wiki-home-notes article + article {
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid var(--hair);
    border-left: 0;
  }
}
