/* ==========================================================================
   Extra styles for note pages (steps, callouts, sources). Shared by the note pages. Builds on design-system/design-system.css
   and the tokens in ../../styles.css.
   ========================================================================== */

.ds-guide h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}

.ds-guide p + p,
.ds-guide pre + p,
.ds-guide .ds-list + p {
  margin-top: 16px;
}

.ds-steps {
  margin-top: 16px;
  padding-left: 1.3em;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.ds-steps li::marker {
  font-family: var(--label);
  color: var(--ink);
}

.hero-lede code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--ink);
}

.callout {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.callout .icon {
  color: var(--ink);
}

.callout.warn {
  border-left-color: var(--ink);
}

.callout.personal {
  border-left-style: dashed;
  border-left-color: var(--ink);
}

.callout strong {
  color: var(--ink);
}

.sources {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.sources ul {
  margin-top: 8px;
  padding-left: 1.1em;
  list-style: disc;
}

.sources a {
  word-break: break-word;
}

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

[data-site-theme="studio"] .ds-guide :is(h2, h3) {
  font-weight: 900;
}

/* Preview box of the theme background pattern (empty in the default theme). */
.theme-pattern-demo {
  height: 160px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background-image: var(--pattern-image);
}
