/* The build guide (site/guide/): long-form reading on top of ../styles.css */
body.guide-page { font-size: 18px; }
.g-head { padding-block: clamp(1.5rem, 4vw, 3rem) 1rem; }
.g-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); margin-top: .3rem; max-width: 18em; }
.g-head .lead { max-width: 40em; }
.honest { margin-top: 1rem; max-width: 40em; padding: .8rem 1rem; border-left: 3px solid var(--cue); background: var(--panel); border-radius: 0 8px 8px 0; color: #c2c3c8; font-size: .95rem; }
.g-tl { margin: 2rem 0 0; }
.g-tl ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.g-tl ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 11px, rgb(255 255 255 / .08) 11px 12px), var(--panel); }
.g-tl li { position: relative; display: grid; align-content: start; gap: .15rem; padding-top: 1.4rem; padding-right: .5rem; }
.g-tl .dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 4px; background: var(--cue); box-shadow: 0 0 10px rgb(242 201 76 / .5); }
.g-tl li:last-child .dot { background: var(--accent); box-shadow: 0 0 10px rgb(126 224 58 / .5); }
.g-tl b { font-family: var(--display); font-size: 1rem; }
.g-tl small { color: var(--muted); font-size: .82rem; }
.g-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; padding-bottom: 3rem; }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding-top: 1.5rem; }
.toc ol { padding-left: 1.4rem; margin: 0; display: grid; gap: .35rem; font-size: .92rem; }
.toc li::marker { color: var(--accent); font-weight: 700; }
.toc .extra { list-style: none; margin-left: -1.4rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.g-article { max-width: 70ch; min-width: 0; }
.step { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.step h2 { display: flex; gap: .7rem; align-items: baseline; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 1rem; }
.sn { color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
.step p, .step li { line-height: 1.65; }
.goal { color: #c2c3c8; }
.todo { padding-left: 1.4rem; display: grid; gap: .45rem; margin: 0; }
.todo li::marker { color: var(--accent); font-weight: 700; }
.did { margin: 1.5rem 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.did-bar { height: 4px; margin: -1.1rem -1.2rem 1rem; position: relative;
  background: repeating-linear-gradient(90deg, transparent 0 11px, rgb(255 255 255 / .07) 11px 12px), var(--raised); }
.did-bar span { position: absolute; top: 0; bottom: 0; background: var(--cue); }
.did-bar span:first-child { left: 18%; width: 9%; }
.did-bar span:last-child { left: 61%; width: 5%; }
.did .kicker { color: var(--cue); }
.did p:last-child { color: #d5d6da; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ck, .mist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ck li { display: flex; gap: .6rem; align-items: flex-start; }
.box-ic { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .3rem; border: 2px solid var(--accent); border-radius: 4px; }
.mist li { padding-left: 1.4rem; position: relative; color: #c2c3c8; }
.mist li::before { content: "×"; position: absolute; left: 0; color: var(--cue); font-weight: 700; }
.code { position: relative; margin: 1.2rem 0; }
.code pre { margin: 0; padding: 1rem 5.5rem 1rem 1rem; background: #111215; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.code code { font: .88rem/1.55 ui-monospace, Consolas, monospace; color: var(--ink); white-space: pre; }
.code .copy { position: absolute; top: .55rem; right: .55rem; }
.tpl-link { margin-top: 1rem; }
.tpl-link a { color: var(--accent); font-weight: 600; }
.tpls { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tpls li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.tpls li > span { flex: 1 1 14rem; font-weight: 600; }
.tpls .btn-ghost { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 999px) {
  .g-body { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--panel); margin-top: 1rem; }
  .g-tl ol { grid-template-columns: repeat(3, 1fr); row-gap: 1.2rem; }
  .g-tl ol::before { display: none; }
}
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .g-tl ol { grid-template-columns: repeat(2, 1fr); }
  body.guide-page { font-size: 17px; }
}
