/* The developer page of the customer data API, in the Shake-Hand technical documentation layout
   (the header and footer of the PDF manuals: docs/template/build_pdf.py). */
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #1f2933; background: #fff; }
[hidden] { display: none !important; }
/* as wide as the reference (Swagger UI: .wrapper is 1460px with 20px at the sides), on every tab, so the
   header, the tabs and the footer line up with it and nothing moves when the tab changes */
.doc-frame { max-width: 1460px; margin: 0 auto; padding: 0 20px; }
.doc-masthead { display: flex; align-items: flex-end; justify-content: space-between;
                padding: 22px 0 12px; border-bottom: 2px solid #00943d; }
.doc-masthead img { height: 42px; display: block; }
.doc-masthead .meta { text-align: right; }
.doc-masthead .kicker { color: #00943d; font-weight: 700; letter-spacing: 0.14em; font-size: 12px; }
.doc-masthead .sub { color: #6b7280; font-size: 12px; margin-top: 3px; }
.doc-footer { margin: 48px 0 0; padding: 12px 0 28px; border-top: 1px solid #d1d5db; color: #6b7280; font-size: 12px; }

h1 { font-size: 28px; line-height: 1.2; margin: 32px 0 14px; color: #111827; }
h2 { font-size: 19px; color: #00943d; margin: 34px 0 12px; padding-bottom: 5px; border-bottom: 1px solid #d1d5db; }
h3 { font-size: 16px; margin: 24px 0 8px; color: #111827; }
p { margin: 0 0 12px; }
a { color: #00793a; }
.lead { font-size: 17px; color: #374151; max-width: 56em; }
.hint { color: #6b7280; font-size: 13px; }
.error { color: #9b1c1c; background: #fdecec; border-left: 4px solid #c81e1e; padding: 10px 14px; border-radius: 0 4px 4px 0; }

/* Our buttons only: Swagger UI styles its own, and a page-wide rule painted its model and "Expand all" buttons green. */
.doc-button { font: inherit; font-weight: 600; color: #fff; background: #00943d; border: 0; border-radius: 4px;
              padding: 8px 16px; cursor: pointer; }
.doc-button:hover { background: #007a33; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7dd3a0; outline-offset: 2px; }

/* the key form */
#gate { max-width: 640px; padding-bottom: 40px; }
#gate label { display: block; font-weight: 600; margin: 24px 0 6px; }
.gate-row { display: flex; gap: 8px; }
.gate-row input { flex: 1; min-width: 0; font: 14px Menlo, "SF Mono", Consolas, monospace; padding: 9px 10px;
                  border: 1px solid #9ca3af; border-radius: 4px; }
#gate .error, #gate .hint { margin-top: 12px; }

/* the sections */
.doc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-bottom: 1px solid #d1d5db; margin-top: 6px; }
.doc-nav a { padding: 12px 14px 10px; text-decoration: none; color: #374151; font-weight: 600;
             border-bottom: 3px solid transparent; margin-bottom: -1px; }
.doc-nav a:hover { color: #00793a; }
.doc-nav a.current { color: #00793a; border-bottom-color: #00943d; }
.doc-nav .who { margin-left: auto; color: #6b7280; font-size: 13px; padding: 6px 0; }
.doc-nav .who .doc-button { background: none; color: #00793a; padding: 4px 6px; text-decoration: underline; font-weight: 400; }
#notice { margin-top: 16px; }
.preview { margin-top: 16px; color: #7a4b00; background: #fff4d6; border-left: 4px solid #d99a00; padding: 10px 14px;
           border-radius: 0 4px 4px 0; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 8px; }
.facts dt { color: #6b7280; }
.facts dd { margin: 0; }

.with-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
.toc { position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow: auto;
       font-size: 13px; padding-top: 34px; }
.toc a { display: block; padding: 3px 0; color: #374151; text-decoration: none; }
.toc a:hover { color: #00793a; text-decoration: underline; }
.toc a.sub { padding-left: 14px; color: #6b7280; }
.actions { margin: 28px 0 -12px; text-align: right; }
@media (max-width: 800px) {
  .with-toc { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; padding-top: 16px; }
}

/* text rendered from markdown: the manual, the changelog, getting started */
/* running text keeps a readable line; tables and code use the whole width */
.doc-text { max-width: none; }
.doc-text > p, .doc-text > ul, .doc-text > ol, .doc-text > blockquote, .doc-text > h1, .doc-text > h2, .doc-text > h3 { max-width: 64em; }
.doc-text blockquote { margin: 0 0 14px; background: #e8f5ee; border-left: 4px solid #00943d; padding: 10px 14px;
                       border-radius: 0 4px 4px 0; }
.doc-text blockquote p:last-child { margin-bottom: 0; }
.doc-text code { font: 13px Menlo, "SF Mono", Consolas, monospace; background: #f3f4f6; padding: 1px 4px; border-radius: 3px; }
.doc-text pre { background: #f6f8f7; border-left: 4px solid #9ca3af; padding: 10px 14px; overflow-x: auto; margin: 0 0 14px; }
.doc-text pre code { background: none; padding: 0; }
.doc-text table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.doc-text th { text-align: left; background: #e8f5ee; color: #0b5d2a; padding: 8px 10px; }
.doc-text td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.doc-text ul, .doc-text ol { margin: 0 0 12px; padding-left: 24px; }
.doc-text li { margin-bottom: 5px; }
.doc-text h2[id], .doc-text h3[id] { scroll-margin-top: 12px; }

.downloads { list-style: none; padding: 0; max-width: 64em; }
.downloads li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
.downloads .doc-button { flex: none; min-width: 210px; }

#section-reference .hint { margin: 16px 0 0; }
#swagger-ui { max-width: 1460px; margin: 0 auto; }
/* Swagger UI links to the API description; opened as a page it has no key. "Downloads" offers the file. */
#swagger-ui .info .main > a.link { display: none; }
