/* Use Mindpocket in ChatGPT and Claude (/talking-to-mindpocket; ADR-0110 D10 and D13, record docs/design/connect-guide/).
   On top of site.css and its privacy page's reading layout (.policy): the address on a card of its own with its Copy,
   each assistant's steps on a card, numbered in the orange, the iPhone's part on a card of its own, and the tools in
   three groups, each title over its one line. */

.docs .hero .lede {
  max-width: 30rem;
}

.docs h2 {
  scroll-margin-top: 24px;
}

/* The address: the one thing copied, so it reads whole and selects whole. */
.address {
  margin: 0 0 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px -24px rgb(0 0 0 / 0.75);
}

.docs code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.address code {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  user-select: all;
  -webkit-user-select: all;
}

/* A command to paste, on its own line, in the well's face. */
.command {
  display: block;
  margin: 8px 0 2px;
  padding: 10px 12px;
  color: var(--ink);
  line-height: 1.45;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 10px;
  user-select: all;
  -webkit-user-select: all;
}

/* Each client on a card. */
.clients {
  display: grid;
  gap: 14px;
}

.client {
  padding: 20px 20px 6px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.policy .client h3 {
  margin: 0 0 12px;
}

/* Steps, numbered in the app's orange. */
.policy ol.steps {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.policy ol.steps > li {
  position: relative;
  margin: 10px 0;
  padding-left: 36px;
  counter-increment: step;
}

.policy ol.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 24px;
  height: 24px;
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  background: var(--accent);
  border-radius: 50%;
}

.docs b {
  color: var(--ink);
  font-weight: 650;
}

/* The tools: three groups on cards, each tool its title over its one line. */
.tools {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.group {
  padding: 20px 20px 8px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.policy .group h3 {
  margin: 0 0 6px;
}

.group .fine {
  margin: 0 0 8px;
}

.policy .group ul {
  margin: 0;
}

.policy .group li {
  display: grid;
  align-content: start;
  gap: 2px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.policy .group li:first-child {
  border-top: 0;
}

.policy .group li::before {
  display: none;
}

.group li span {
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.docs .help {
  margin-top: 56px;
}

.policy.docs .help h2 {
  margin-top: 0;
}

@media (min-width: 720px) {
  /* Room for two tools a row in the long group, so the page stays a reading length. */
  .policy .group ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .policy .group li:nth-child(2) {
    border-top: 0;
  }
}

/* The address and the command, each with its Copy beside it once the script has said it can copy; where the line has
   no room for both, Copy goes under it, at its end, rather than the address breaking inside a word. */
.copyable {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
}

.copyable code {
  flex: 1 1 18em;
  min-width: 0;
}

/* One line at every width: a 280 px phone draws it a little smaller rather than breaking it. */
.address.copyable code {
  font-size: min(1rem, 3.9vw);
  white-space: nowrap;
  overflow-wrap: normal;
}

.copy {
  flex: 0 0 auto;
  padding: 7px 14px;
  color: var(--on-accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.copy:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.copy[hidden] {
  display: none;
}

.command.copyable {
  padding-right: 8px;
}

/* The assistant a shared link opens at, drawn as the one it names. */
.client:target {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.client {
  scroll-margin-top: 24px;
}

/* The iPhone's part: where the yes is given, the one thing no computer does. */
.phone {
  padding: 20px 20px 6px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--edge);
  border-radius: var(--radius-card);
}

.policy .phone h2 {
  margin-top: 0;
}
