/* The user guide, /guides, in the docs' frame (docs.css). Loaded by that page alone. The four steps as four cards, each
   with the real screen it is about (Cloud/server/scripts/web-guide-shots.mjs takes them); then each agent's own page,
   when each one starts, and every guide under the sidebar's own groups. */
.guide-head { padding: 30px 0 0; }
.guide-head h1 { margin: 0 0 8px; font: 600 34px/40px var(--font-system); letter-spacing: -0.025em; color: var(--ink); }
.guide-head .lead { margin: 0; font: 400 17px/26px var(--font-system); color: var(--d-ink2); }
/* The author line every English guide carries beside its date (task 9BCF5CF5); the hub has no date, so it stands alone under the H1. */
.guide-head .page-byline { margin: 0 0 12px; font: 400 13px/18px var(--font-system); color: var(--d-ink3); }

.guide-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.guide-steps > li {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
}
.guide-step-words { display: flex; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.guide-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  font: 600 12px/1 var(--font-system);
}
.guide-steps h3 { margin: 0 0 2px; font: 600 15px/22px var(--font-system); color: var(--ink); }
.guide-steps p { margin: 0; font: 400 13.5px/20px var(--font-system); color: var(--d-ink2); }
.guide-steps .guide-aside { margin-top: 6px; }
.guide-aside a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.guide-steps picture { display: block; border-top: 1px solid var(--d-line); background: var(--d-band); }
.guide-steps img { display: block; width: 100%; height: auto; }

.guide-cta { display: flex; justify-content: flex-start; margin: 22px 0 0; }
.guide-cta .pill { height: 40px; padding: 0 18px; font: 600 14px/20px var(--font-system); }

.guide-agents, .guide-starts, .guide-more { margin-top: 48px; }
.docs-frame .guide-agents h2, .docs-frame .guide-starts h2, .docs-frame .guide-more h2 { margin: 0 0 14px; }
.guide-tiles li { display: flex; }
.guide-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide-tiles a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  color: var(--ink);
}
.guide-tiles a:hover { background: var(--d-band); }
.guide-tiles img { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.guide-tiles b { display: block; font: 600 14px/20px var(--font-system); }
.guide-tiles small { display: block; font: 400 12.5px/17px var(--font-system); color: var(--d-ink3); }

.guide-starts table { width: 100%; border-collapse: collapse; font: 400 14px/21px var(--font-system); color: var(--ink); }
.guide-starts th, .guide-starts td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; }
.guide-starts tbody tr { border-top: 1px solid var(--d-line); }
.guide-starts tbody th { font-weight: 600; white-space: nowrap; }
.guide-starts thead th { padding-block: 0 8px; font: 500 12.5px/17px var(--font-system); color: var(--d-ink3); }
.guide-starts p { margin: 10px 0 0; font: 400 14px/21px var(--font-system); }
.guide-starts a, .guide-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--d-line2);
  text-underline-offset: 3px;
}
.guide-starts a:hover, .guide-topics a:hover { text-decoration-color: currentColor; }
.guide-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.guide-topics h3 { margin: 0 0 4px; font: 500 12.5px/17px var(--font-system); color: var(--d-ink3); }
.guide-topics ul { list-style: none; margin: 0; padding: 0; }
.guide-topics a { padding: 4px 0; margin: -4px 0; font: 400 14px/20px var(--font-system); color: var(--d-ink2); }

@media (max-width: 1099px) {
  .guide-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .guide-head h1 { font-size: 28px; line-height: 34px; }
  .guide-tiles, .guide-topics { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the one action is a full 44px target. */
  .guide-cta .pill { height: 44px; }
  /* Each agent is a card of its own: three narrow columns broke every cell into four lines. */
  .guide-starts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .guide-starts tr, .guide-starts tbody th, .guide-starts td { display: block; }
  .guide-starts tbody tr { padding: 12px 0; }
  .guide-starts tbody th, .guide-starts td { padding: 0; }
  .guide-starts td::before { content: attr(data-label); display: block; font: 400 12.5px/17px var(--font-system); color: var(--d-ink3); }
  .guide-starts td { margin-top: 6px; }
}
