/* Product information pages (gateway, chat). Documentation register: one
   measure, section rules, tables. Shares tokens and chrome with styles.css. */

.site-header.pinned { position: static; background: var(--night); }

.doc-main { padding: 32px 0 64px; }
.doc-wrap { max-width: 820px; }
.doc-main h1 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -.035em; font-weight: 560; }
.doc-lede { max-width: 700px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.doc-section { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); }
.doc-section h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.01em; font-weight: 600; }
.doc-section h3 { margin: 22px 0 8px; font-size: 14px; font-weight: 600; }
.doc-section p { margin: 0 0 12px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.doc-section p.note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.doc-list { margin: 0 0 12px; padding-left: 20px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.doc-list li { margin-bottom: 6px; }
.doc-list code, .doc-section p code { padding: 1px 5px; border: 1px solid var(--rule); border-radius: 4px; background: rgba(23,32,42,.04); font-size: 13px; }

/* "What to read next" as cards. Colours come from the site tokens; the rule
   above the section is .doc-section's own border. */
.read-next__eyebrow { display: inline-block; margin-bottom: .6rem; color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.read-next .read-next__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
.read-next .read-next__subtitle { max-width: 620px; margin: .55rem 0 1.6rem; color: var(--muted); font-size: 15px; line-height: 1.6; }
.read-next__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.read-next__card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem; border: 1px solid var(--rule); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.read-next .read-next__card-title { margin: 0 0 .4rem; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.read-next .read-next__card-text { margin: 0; flex: 1; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.read-next .read-next__link { margin: .9rem 0 0; color: var(--blue); font-size: 13px; font-weight: 650; }
@media (max-width: 640px) { .read-next__grid { grid-template-columns: 1fr; } .read-next__card { padding: 1rem; } }

.doc-table { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 13px; }
.doc-table th { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); color: #879097; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; text-align: left; }
.doc-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink); vertical-align: top; }
.doc-table td:first-child { white-space: nowrap; }
.doc-table td.dim { color: var(--muted); }

.doc-code { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: rgba(23,32,42,.04); color: var(--ink); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }

.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 11px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .doc-main { padding-top: 22px; }
  .doc-table { font-size: 12px; }
  .doc-table td:first-child { white-space: normal; }
}
