/* The sales site's palette, so a reader following the masthead's Docs link lands
   somewhere that looks like where they came from. Deliberately a copy of the values in
   sales.css rather than a shared file, for the reason that file gives: two sites diverge
   on everything except colour, and a shared stylesheet becomes one neither can change.

   On the scheme attribute as well as :root, because Material sets the same variables on
   the body under that attribute, and a value on the body is inherited over anything
   :root says however late this file is loaded. */
:root,
[data-md-color-scheme="default"] {
    --md-primary-fg-color: #ffffff;
    --md-primary-bg-color: #1b1b1f;
    --md-primary-bg-color--light: #5c5f6b;
    --md-accent-fg-color: #2f6feb;
    --md-typeset-a-color: #2f6feb;
    --md-default-fg-color: #1b1b1f;
    --md-code-bg-color: #f6f8fa;
}

.md-header {
    border-bottom: 1px solid #dfe1e6;
    box-shadow: none;
}

.md-header__title {
    font-weight: 600;
}

.md-tabs {
    border-bottom: 1px solid #dfe1e6;
}

/* A key is one word however long it is: `timeout-seconds` broken across two lines reads
   as two keys, and the row it is in is what somebody is copying. */
.md-typeset table:not([class]) td:first-child code {
    white-space: nowrap;
}

/* The API reference, which the OpenAPI plugin renders as plain Markdown and a handful of
   classes it leaves to the site to dress. The plugin ships no stylesheet of its own, so
   these are the site's, kept to what a reader scanning for one endpoint needs: the method
   as a badge, the path parameters picked out, and the generated example marked as such
   without shouting. */
.md-typeset [class^="http-"] {
    display: inline-block;
    min-width: 4.2em;
    margin-right: 0.4em;
    padding: 0.05em 0.5em;
    border-radius: 4px;
    font-family: var(--md-code-font-family);
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    color: #fff;
}
.md-typeset .http-get { background: #1f883d; }
.md-typeset .http-post { background: #2f6feb; }
.md-typeset .http-put,
.md-typeset .http-patch { background: #9a6700; }
.md-typeset .http-delete { background: #cf222e; }

.md-typeset .route-param { color: #9a6700; }
.md-typeset .parameter-name code { white-space: nowrap; }
.md-typeset .api-version { color: #5c5f6b; font-size: 0.8em; margin-left: 0.5em; }
.md-typeset hr.operation-separator { margin: 2.5em 0 1.5em; }
.md-typeset .request-body-title,
.md-typeset .responses-title { margin-top: 1.5em; }

/* Every example is invented from the schema, and the plugin says so under each one. True
   and worth keeping; not worth the width of a warning. */
.md-typeset .small-note { font-size: 0.75em; color: #5c5f6b; }
.md-typeset .small-note.warning { font-style: normal; }
