/* Etude — the two guide pages (Etude Agent, External Agents): short sections,
   one feature each, with where to find it in the app, what to ask, and a
   short demo (assets/vignette.css). All text is plain HTML so people and AI agents
   reading the page get the same facts. */

.guide-note { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.guide-note a { color: var(--ink-2); text-underline-offset: 3px; }

/* the features on this page, as a row of links */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 5vh, 40px);
  padding: 0;
  list-style: none;
}
.guide-toc a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.guide-toc a:hover { background: var(--glass-fill-hover); border-color: var(--glass-rim-hover); }

/* one feature */
.guide-step { margin-top: clamp(48px, 8vh, 72px); scroll-margin-top: calc(var(--topbar-h) + 24px); }
.guide-step h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.guide-step > p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
.guide-step > p a { color: var(--ink); text-underline-offset: 3px; }
.guide-step ul {
  margin-top: 12px;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.guide-step li + li { margin-top: 6px; }
.guide-step li b, .guide-step > p b { color: var(--ink); font-weight: 600; }

/* "Where" and "Try" lines: what to open, and what to say */
.guide-how {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: baseline;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  font-size: 15.5px;
  line-height: 1.5;
}
.guide-how dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.guide-how dd { margin: 0; color: var(--ink-2); }
/* a name as the app spells it: a menu, a pane, a button */
.ui {
  display: inline-block;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-rim);
  font-size: 0.94em;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
/* something to type to the agent, as the app's own message bubble */
.say {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 12px;
  background: #dce5fb;
  color: #000;
  quotes: none;
}
:root[data-theme="dark"] .say { background: #262f3f; color: #fff; }
/* several things to try: one per line, with room between */
.guide-how dd:has(.say) { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.guide-how dd:has(.say) br { display: none; }
.guide-how code, .guide-step code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--ink);
}
/* a block of settings to copy */
.guide-code {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre;
}

.guide-code.wrap { white-space: pre-wrap; }

/* the closing download */
.guide-end { margin-top: clamp(56px, 9vh, 88px); text-align: center; }
.guide-end h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.guide-end p { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.guide-end .cta-button { margin-top: 22px; }
.guide-end .cta-note { margin-top: 12px; font-size: 13px; }

@media (max-width: 600px) {
  .guide-how { grid-template-columns: 1fr; gap: 4px; }
  .guide-how dd + dt { margin-top: 8px; }
}
