/* Public guides, API reference and account views share the main design tokens. */
.section-tight { padding-top: 24px; }
.editorial-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.editorial-grid > * { min-width: 0; }
.editorial-grid .prose > .eyebrow + h2 { margin-top: 0; }
.company-card h2 { font-size: 1.45rem; }
.company-card .facts { grid-template-columns: 1fr; gap: 3px; margin-top: 26px; }
.company-card .facts dd { margin-bottom: 15px; }
.card .eyebrow { font-size: .72rem; color: var(--primary); }
.card .field-help { font-size: .8rem; color: var(--ink-3); }
.link-card { display: flex; flex-direction: column; }
.link-card .text-link { margin-top: auto; padding-top: 14px; }
.link-card h3 { font-size: 1.35rem; }
.card-grid + .field-help { margin-top: 24px; }
.page-hero .action-row + .field-help { margin-top: 18px; }
.page-hero .badge { margin-bottom: 18px; }
.section-heading > .badge { flex-shrink: 0; }
/* Long documents remain navigable and readable at narrow viewport widths. */
.docs-nav .eyebrow { margin-bottom: 8px; }
.docs-body > section { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.docs-body > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.docs-body > section > h2 { margin-top: 0; }
.docs-body .steps { grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
.docs-body .steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 20px; }
.docs-body .steps li::before { margin: 0; padding-top: 3px; }
.docs-body .steps p { margin: 0; }
.docs-body .callout { font-size: .9rem; }
.docs-body .data-table th[scope="row"] { background: transparent; }
.docs-body .data-table { font-size: .84rem; }
.docs-body .data-table td { min-width: 180px; }
.legal .data-table { min-width: 560px; }
.legal h2 { scroll-margin-top: 110px; }
.legal li { margin-bottom: 8px; }
.endpoint { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); }
.endpoint .verb { padding: 3px 6px; border-radius: 4px; background: #dcece2; }
.code-example { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 24px 0; }
.code-example .code-label { margin: 0; padding: 11px 20px; font: 600 .72rem/1.5 var(--font); color: var(--ink-2); background: var(--paper-2); }
.code-example .code { border-radius: 0; margin: 0; }
.code-disclosure { border: 1px solid var(--line); border-radius: 10px; margin: 20px 0; overflow: hidden; }
.code-disclosure summary { cursor: pointer; padding: 16px 20px; font-size: .86rem; font-weight: 600; background: #fff; }
.code-disclosure[open] summary { border-bottom: 1px solid var(--line); }
.code-disclosure .code { margin: 0; border-radius: 0; }
.code-disclosure summary:focus-visible { outline-offset: -4px; }
/* Account states, form helpers and one-time key handling. */
.account-heading > div { min-width: 0; }
.account-heading .muted { overflow-wrap: anywhere; }
.account-content > .callout { margin: 0; }
.account-content .callout.success { color: #245638; border-color: #bdd7bb; background: #e8f2e7; }
.account-content .callout.error { color: #8b2e1e; border-color: #efc5b5; background: #fff1eb; }
.account-setup { display: flex; gap: 32px; justify-content: space-between; align-items: center; }
.account-setup > div { flex: 1 1 auto; min-width: 0; }
.account-setup > form { flex-shrink: 0; }
.account-setup h2 { font-size: 1.55rem; }
.account-setup .eyebrow { margin-bottom: 10px; }
.account-setup p { font-size: .9rem; }
.account-setup .field-help { font-size: .8rem; margin-bottom: 0; }
.dashboard-grid h2, .key-new h2 { font-size: 1.5rem; }
.card .metric { font-size: 3rem; line-height: 1.2; margin: 18px 0; }
.key-new > .badge { margin-bottom: 16px; }
.key-new .copy-row { margin-top: 24px; }
.key-new [role="status"] { min-height: 1.65em; margin: 10px 0 0; }
.account-section .section-heading { margin-bottom: 22px; align-items: center; }
.account-section .section-heading .eyebrow { margin-bottom: 12px; }
/* Keep absolutely positioned accessible labels inside the scroll container. */
.account-section .table-scroll { position: relative; }
.account-section .keys { min-width: 540px; }
.account-section .keys th[scope="row"] { background: transparent; }
.account-section .keys td:last-child { width: 1%; }
.account-section .inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.account-section .inline-form > button { align-self: start; margin-top: 32px; }
.account-section .inline-form .field-help { margin: 0; font-weight: 400; }
.form-help-row > p:first-child { flex: 1 1 400px; }
#instruction-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-section .form-actions { justify-content: flex-end; }
.account-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.account-nav a:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .editorial-grid { gap: 36px; grid-template-columns: 1fr 1fr; }
  .account-setup { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 740px) {
  .section-tight { padding-top: 16px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 30px; }
  .docs-nav .eyebrow { flex-basis: 100%; margin-bottom: 4px; }
  .docs-body > section { padding-bottom: 30px; margin-bottom: 30px; }
  .docs-body .steps li { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .account-section .section-heading > .text-link, .account-section .section-heading > .badge { margin-top: 16px; }
  .account-section .inline-form { grid-template-columns: 1fr; }
  .account-section .inline-form > button { justify-self: start; margin-top: 0; }
  .account-section .form-actions { justify-content: flex-start; }
  .account-nav { gap: 0 20px; padding-block: 8px; }
  .account-setup { padding: 24px; }
  .code-example .code-label { padding-inline: 16px; }
  .code-example .code, .code-disclosure .code { padding: 18px 16px; }
}
@media print {
  .editorial-grid, .docs-layout { display: block; }
  .docs-body > section, .card, .code-example { break-inside: avoid; }
  .code { white-space: pre-wrap; color: #000; background: #fff; border: 1px solid #bbb; }
  .code code { white-space: pre-wrap; }
  .code-disclosure > * { display: block; }
}
