/* --- About section -------------------------------------------------------- */

.about {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ab-hero { padding: 22px 24px 24px; }

/* The one line that has to land. Everything else on the page explains it. */
.ab-tag {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* One column, the full width of the card. This was set in two columns of a
   fixed measure back when the board could grow to 1680 and beyond; with the
   board capped at 1440 a card is close enough to one comfortable measure that a
   second column only buys a scroll back up. */
.ab-lede { margin-top: 14px; }
.ab-body { padding: 14px 16px 18px; }

/* Space *below* each paragraph, not above. In a single column the two are the
   same thing; in two, a margin above would push the first paragraph of the
   second column down and leave the tops of the columns out of line. */
.ab-para {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.ab-lede .ab-para:last-child,
.ab-body .ab-para:last-child { margin-bottom: 0; }

/* --- off-site ------------------------------------------------------------- */

.ab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.ab-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: var(--fill-2);
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}

.ab-link:hover { border-color: var(--line); background: var(--hover); }
.ab-link:hover .al-where { color: var(--accent-ink); }
.ab-link svg { color: var(--faint); }

.al-what {
  font-size: 9.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}

.al-where {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink);
}

/* --- the MCP endpoint ----------------------------------------------------- */

/* A label over something meant to be selected and copied, so it is set apart
   from the prose rather than buried in a sentence about it. */
.ab-field {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 16px 12px;
}

.af-k {
  width: 84px;
  flex: none;
  font-size: 9.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}

.af-v {
  min-width: 0;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--hair);
  background: var(--fill-2);
  font-size: 11.5px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  user-select: all;
}

.ab-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--hair);
  border-top: 1px solid var(--hair);
}

.abtool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  background: var(--glass);
}

.abtool-title {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.abtool-what {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}

.abtool-names {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

/* The names as the model sees them, so what is written here can be checked
   against the tool table without translating anything. */
.abtool-name {
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--fill-2);
  border: 1px solid var(--hair);
  white-space: nowrap;
}

/* --- reminders ------------------------------------------------------------ */

/* The connection state and the button that proves it, on one line. The dot
   carries the state so the sentence beside it never has to shout. */
.ab-conn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 14px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--fill-2);
}

.ac-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--faint);
}

.ab-conn.is-on .ac-dot {
  background: var(--ok);
  /* A ring rather than a bigger dot, so "connected" reads at a glance without
     the dot becoming the loudest thing on the page. */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.ac-what {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* Pushed to the far end: it is the action, and the sentence is the label. */
.ac-test { margin-left: auto; }

/* The four setup steps. Numbered because they are genuinely a sequence — the
   chat id in step 3 does not exist until step 2 has happened — which is the
   one thing about this setup that is easy to get wrong. */
.ab-steps {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 16px 16px 34px;
  counter-reset: step;
}

.ab-step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.as-what {
  min-width: 132px;
  color: var(--ink);
}

.as-how {
  min-width: 0;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid var(--hair);
  background: var(--fill-2);
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* --- keyboard ------------------------------------------------------------- */

.keys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  padding: 8px 0 12px;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 16px;
}

.combo {
  display: flex;
  gap: 4px;
  width: 92px;
  flex: none;
}

.key-what {
  font-size: 12.5px;
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .ab-tag { font-size: 18px; }
  .ab-field { flex-direction: column; gap: 5px; }
  .af-k { width: auto; }
  /* The button stops fitting beside the sentence long before the card does. */
  .ab-conn { flex-wrap: wrap; }
  .ac-test { margin-left: 0; width: 100%; }
  .as-what { min-width: 0; }
}
