/* Generated by scripts/generate-api-docs.mjs. Do not edit by hand. */
/* Developer docs additions to the site stylesheet (assets/styles.css), which every
   /developers/ page loads first. Every rule is scoped to a docs class. */

/* Docs bar: links between the developer pages and the spec's version, under the site header */
.docs-bar { background: var(--bg-alt); border-bottom: 2px dotted var(--line-strong); }
.docs-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.docs-bar__nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.docs-bar__nav a { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink-2); }
.docs-bar__nav a:hover { background: rgba(92, 58, 33, .08); color: var(--ink); }
.docs-bar__nav a[aria-current="page"] { background: var(--ink); color: var(--ink-inv); }
.docs-stamp { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.docs-stamp time { color: var(--ink-2); font-weight: 700; }

/* Webhooks guide: sidebar + content */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 64px 104px; }
.docs-sidebar { position: sticky; top: calc(var(--topbar-h) + 26px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 52px); overflow-y: auto; font-size: 15px; }
.docs-sidebar__heading { margin: 0 0 8px; padding-left: 12px; font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.docs-sidebar ul { margin: 0 0 24px; padding: 0; list-style: none; }
.docs-sidebar a { display: block; padding: 5px 12px; border-radius: 10px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
/* the site underlines links in running text (main li a); navigation stays plain */
.docs-layout .docs-sidebar a:not(.btn) { text-decoration: none; }
.docs-sidebar a:hover { background: rgba(92, 58, 33, .08); color: var(--ink); }
/* the sidebar scrolls, which clips anything outside it, so the focus ring sits inside the link */
.docs-sidebar a:focus-visible { outline-offset: -3px; }
.docs-sidebar code { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; }

.docs-page :is(.page-head, .docs-content) :not(pre) > code {
  padding: .1em .4em;
  border-radius: 6px;
  background: rgba(92, 58, 33, .08);
  box-shadow: inset 0 0 0 1px rgba(92, 58, 33, .14);
  font-family: var(--font-mono);
  font-size: .84em;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.docs-content { min-width: 0; }
.docs-content h2 { font-size: 1.75rem; margin: 2.2em 0 .6em; }
.docs-guide > h2:first-child { margin-top: 0; }
.docs-content p, .docs-content li { max-width: 760px; }
.docs-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-glow) 55%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.docs-content a:hover { text-decoration-color: currentColor; }
.docs-content pre.code { margin: 0 0 1.4em; }
.docs-content blockquote { margin: 0 0 1.4em; padding: 14px 20px; border-left: 3px solid var(--brand-glow); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.docs-content blockquote p:last-child { margin-bottom: 0; }
.docs-content .table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.docs-content .table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.docs-content .table-wrap th, .docs-content .table-wrap td { padding: 10px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-content .table-wrap thead th { border-top: 0; background: var(--oat-2); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* Event catalog */
.docs-events { margin-top: 72px; padding-top: 56px; border-top: 2px dotted var(--line-strong); }
.docs-events > h2 { margin-top: 0; }
.docs-event { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; margin: 0 0 22px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.docs-event__main, .docs-event__panel { min-width: 0; }
.docs-event__title { position: relative; margin: 0 0 10px; }
.docs-event h3 { margin: 0; font-size: 1.2rem; }
/* the # link sits in the card's left padding, so the event name lines up with the text below it */
.docs-content .docs-anchor { position: absolute; right: 100%; top: 50%; translate: -6px -50%; color: var(--brand); text-decoration: none; opacity: 0; transition: opacity .15s ease; }
.docs-event__title:hover .docs-anchor, .docs-content .docs-anchor:focus-visible { opacity: 1; }
.docs-event h4, .docs-event__label { margin: 22px 0 8px; font-family: var(--font-body); font-size: 12.5px; font-weight: 800; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.docs-event__label { margin-top: 0; }
.docs-event h4 code { letter-spacing: 0; text-transform: none; }
.docs-event__panel pre.code { margin: 0; font-size: 12.5px; }

/* Payload properties */
.docs-content table.props { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: 15px; }
.docs-content table.props td { padding: 10px 14px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.docs-content table.props tr:first-child td { border-top: 0; }
.docs-content .prop-name { width: 1%; white-space: nowrap; }
.docs-content .prop-name .req { display: block; margin-top: 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--err); }
.docs-content .prop-type { width: 1%; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.docs-content table.props td.prop-type { padding-right: 18px; }
.docs-content .prop-desc p { margin-bottom: .4em; }
.docs-content .constraints { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.docs-content .schema-scalar, .docs-content .schema-scalar + p { font-size: 15px; }
.docs-content details.nested { margin-top: 8px; padding: 6px 12px; overflow-x: auto; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.docs-content details.nested summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-3); }

@media (max-width: 1080px) {
  .docs-event { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); padding-block: 48px 72px; }
  .docs-sidebar { display: none; }
}
@media (max-width: 600px) {
  .docs-bar__nav a { padding: 6px 11px; font-size: 14px; }
  .docs-event { padding: 20px; }
}
/* Property rows stack (name and type on one line, the description under them) wherever three
   columns cannot fit: always in a nested table, which sits in a description column, and in the
   outer table up to 600px. */
.docs-content details.nested table.props, .docs-content details.nested table.props :is(tbody, tr, td) { display: block; width: auto; }
.docs-content details.nested table.props tr { padding: 8px 0; border-top: 1px solid var(--line); }
.docs-content details.nested table.props tr:first-child { border-top: 0; }
.docs-content details.nested table.props td { padding: 2px 0; border-top: 0; }
.docs-content details.nested table.props :is(.prop-name, .prop-type) { display: inline-block; width: auto; padding: 2px 10px 2px 0; }
@media (max-width: 600px) {
  .docs-content table.props, .docs-content table.props tbody, .docs-content table.props tr, .docs-content table.props td { display: block; width: auto; }
  .docs-content table.props tr { padding: 8px 0; border-top: 1px solid var(--line); }
  .docs-content table.props tr:first-child { border-top: 0; }
  .docs-content table.props td { padding: 2px 0; border-top: 0; }
  .docs-content table.props :is(.prop-name, .prop-type) { display: inline-block; width: auto; padding: 2px 10px 2px 0; }
}
