/* Setup guide (/connect): one 680px column of stickies. Values follow the Paper boards
   "Sticky Connect — 1440 light / 1440 dark / 390 light" and "Sticky Connect — states". Loaded after styles.css.
   Nothing here drags or edits: the live parts are the Copy buttons, the Codex disclosure, the check todos and links. */

:root { --column: 680px; }

.guide { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 24px; }
.guide .note { gap: 12px; padding: 32px 16px 20px; }

.guide .note-intro { gap: 0; padding-top: 34px; }
.note-intro .eyebrow { font-weight: 600; }
.note-intro h1 { margin: 6px 0 0; font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
.note-intro .intro { padding-top: 12px; font-size: 15px; line-height: 22px; letter-spacing: -0.012em; }

/* Jump links, each in its step's colour. */
.app-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.step { scroll-margin-top: 16px; }
.step-title { display: flex; align-items: flex-start; gap: 12px; }
.step-number { flex-shrink: 0; width: 26px; height: 26px; border-radius: 13px; color: var(--label); font-size: 13px; font-weight: 600; line-height: 16px; }
.step h2 span { color: var(--label-2); font-weight: 400; }
.step p { font-size: 15px; line-height: 22px; letter-spacing: -0.01em; color: var(--label); }
.step .hint { font-size: 13px; line-height: 18px; letter-spacing: -0.006em; color: var(--label-2); }
.step-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 8px; }

/* Snippets sit on an inset panel in the sticky's own paper. */
.snippet { border-radius: 11px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--hairline); }
.snippet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 0 14px;
  color: var(--label-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.005em;
}
/* The glass is 22px tall; 3px of transparent padding makes the hit target 28px (WCAG 2.5.8) without moving it,
   and the -1px offset puts the focus ring 2px outside the glass, like the capsules'. */
.copy { margin: -3px; padding: 3px; border: 0; border-radius: 14px; background: none; font: inherit; cursor: pointer; }
.copy:focus-visible { outline-offset: -1px; }
.copy .glass { gap: 4px; padding: 0 9px 0 7px; color: var(--label); }
.copy:hover .glass { background: var(--glass-hover); }
.copy svg { width: 11px; height: 12px; color: var(--glyph); }
/* Copied stays neutral: only the icon and the label change. */
.copy .icon-check, .copy.is-copied .icon-copy { display: none; }
.copy.is-copied .icon-check { display: block; }
/* Long commands wrap inside the panel on narrow screens instead of scrolling the page. */
.snippet pre { margin: 0; padding: 10px 12px 14px; color: var(--label); font-size: 12px; line-height: 18px; white-space: pre-wrap; word-break: break-all; }
/* The prompt is drawn here, so the code's textContent (what Copy writes) is exactly the command. */
.snippet .shell::before { content: "$ "; color: var(--label-2); }

.disclosure summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  margin-top: 3px;
  padding-block: 1px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.disclosure summary::-webkit-details-marker { display: none; }
.chevron { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 16px; height: 22px; color: var(--glyph); }
.disclosure[open] .chevron svg { rotate: 90deg; }
.disclosure-body { display: flex; flex-direction: column; gap: 12px; margin-top: 11px; padding-left: 24px; }
.disclosure-body code { font-size: 13px; letter-spacing: -0.01em; }

.guide .check { gap: 14px; }
.check .todos { gap: 10px; }
.check .todo { grid-template-columns: 18px 1fr; column-gap: 10px; font-size: 15px; line-height: 22px; letter-spacing: -0.01em; }
.check .todo input { top: -1px; left: -3px; }
.check .todo-box { width: 17px; height: 17px; margin: 2.5px 0 0 0.5px; border-radius: 9px; }

.guide .trouble { gap: 16px; }
.trouble dl { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.trouble dl div { display: flex; flex-direction: column; gap: 2px; }
.trouble dt, .trouble dd { font-size: 15px; line-height: 22px; letter-spacing: -0.01em; }
.trouble dt { font-weight: 600; }
.trouble dd { margin: 0; color: var(--label-2); }
.trouble dd strong { color: var(--label); }

/* Desktop: same query as styles.css. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .guide { gap: 24px; padding: 64px 0 96px; }
  .guide .note { padding: 32px; }
  .guide .note-intro { padding-top: 36px; }
  .note-intro h1 { font-size: 44px; line-height: 48px; }
  .note-intro .intro { font-size: 17px; line-height: 26px; }
  .app-pills { gap: 12px; }
  .app-pills .pill { padding: 0 18px; }
  .step-actions { flex-direction: row; align-items: center; gap: 20px; }
  .snippet pre { padding-inline: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .copy .glass { transition: background-color 0.15s; }
  .chevron svg { transition: rotate 0.15s; }
}
