/* The guide: a field manual — sticky index on the left, command cards on
   the right; one column on phones. */
.guide-head {
  max-width: var(--width); margin: 28px auto 28px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: end; justify-content: space-between;
}
.guide-head h1 {
  font: 750 clamp(30px, 5vw, 46px)/1.05 var(--font-display); font-variation-settings: "opsz" 96;
  margin: 0; letter-spacing: -0.01em; text-wrap: balance;
}
.lede { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.search { flex: 1 1 300px; max-width: 360px; }
.search label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.search input {
  width: 100%; font: 15px var(--font-body); padding: 9px 12px; border-radius: 6px;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink);
}

.wrap { max-width: var(--width); margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
nav.index { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
nav.index a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--rule); font-size: 15px; }
nav.index a:hover { color: var(--ink); border-left-color: var(--brass); }
main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
section h2 { font: 600 24px/1.2 var(--font-display); margin: 0 0 4px; }
section > p.sub { margin: 0 0 16px; color: var(--muted); }
.cards { display: flex; flex-direction: column; gap: 14px; }
.cmd { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; min-width: 0; }
.cmd h3 { margin: 0; font: 600 16px var(--font-mono); color: var(--brass); overflow-wrap: anywhere; }
.cmd h3 .what { font: 600 15px var(--font-body); color: var(--ink); margin-left: 10px; }
.cmd p { margin: 6px 0 0; }
.cmd ul { margin: 8px 0 0; padding-left: 20px; }
table { border-collapse: collapse; width: 100%; margin-top: 10px; font-size: 15px; }
.tbl { overflow-x: auto; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; padding: 4px 10px 6px 0; border-bottom: 1px solid var(--rule); }
td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
.ex { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--code-bg); border-radius: 6px; padding: 7px 8px 7px 12px; }
.line .c { font: 14px var(--font-mono); overflow-x: auto; white-space: pre; }
.line .c .hash { color: var(--muted); }
.line button {
  font: 600 12px var(--font-body); color: var(--brass); background: transparent; border: 1px solid var(--rule);
  border-radius: 5px; padding: 3px 8px; cursor: pointer;
}
.line button.done { color: var(--ok); border-color: var(--ok); }
.note { margin-top: 12px; padding: 10px 14px; background: var(--brass-soft); border-radius: 6px; font-size: 15px; }
.empty { color: var(--muted); }

@media (max-width: 760px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  nav.index { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  nav.index a { border: 1px solid var(--rule); border-radius: 5px; padding: 3px 9px; font-size: 14px; }
  td:first-child { white-space: normal; }
}
