/* Layout */

.sm-nui.sm-api-page {
    color: #000;
    background: #fff;
}

#sm-api-header {
    /* Matches the header color & height before the header is rendered by JS */
    height: 60px;
    background: #000;
}

.sm-api-header-link {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

.sm-api-header-link:last-child {
    margin-right: 30px;
}

.sm-api-page .sm-page-layout {
    margin-top: 12px;
}

/* General */

/* .sm-nui is needed to override the SM skin */
.sm-nui .sm-api h1,
.sm-nui .sm-api h2,
.sm-nui .sm-api h3,
.sm-nui .sm-api h4,
.sm-nui .sm-api h5,
.sm-nui .sm-api h6 {
    color: #000;
    margin-top: 20px;
}

.sm-api h1:first-child,
.sm-api h2:first-child,
.sm-api h3:first-child,
.sm-api h4:first-child,
.sm-api h5:first-child,
.sm-api h6:first-child {
    margin-top: 0px;
}

/* .sm-nui is needed to override the SM skin */
.sm-nui .sm-api a,
.sm-nui .sm-api a:visited,
.sm-nui .sm-api a:hover,
.sm-nui .sm-api a:active {
    color: rgb(127,185,35);
}

/* Explorer */

.sm-api-explorer {
    padding: 20px;
    height: 100%;
    margin: 0px 20px;
    font-size: 16px;
}

.sm-api-explorer > ul {
    list-style-type: none;
}

.sm-api-explorer > ul > li > ul > li:before {
    content: '\002013\0000A0'; /* en dash and non-breaking space */
}

.sm-nui .sm-api-explorer a.active,
.sm-nui .sm-api-explorer a.active:visited,
.sm-nui .sm-api-explorer a.active:active,
.sm-nui .sm-api-explorer a.active:hover {
    color: #000000;
}

.sm-api-explorer h3 {
    margin-bottom: 0.5em;
}

/* Content */

.sm-api-content, .sm-api-explorer {
    font-size: 16px;
    font-weight: 300;
}

.sm-api-content {
    padding: 20px 40px 40px 40px;
}

.sm-api-content p,
.sm-api-content ul,
.sm-api-content ol {
    margin-top: 10px;
}

.sm-api-content blockquote {
    padding-left: 2em;
    padding-right: 2em;
    font-family: serif;
    background-color: #fafafa;
}

.sm-api-content ul {
    list-style-type: disc;
}

.sm-api-content ol {
    list-style-type: decimal;
}

.sm-api-content ul,
.sm-api-content ol {
    padding-left: 40px;
}

.sm-api-content a.block {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgb(127,185,35);
}

.sm-warning {
    background-color: #fdfd96;
    padding: 14px;
}

.sm-deprecation.sm-warning {
    font-weight: bold;
}

.sm-api-content .corgi {
    margin-top: 20px;
}

/* Key-value tables */

.sm-kv-table {
    font-size: 14px;
    margin-top: 10px;
}

.sm-kv-table th {
    font-weight: 800;
}

.sm-kv-table tr:first-child {
    border-top: none;
}

.sm-kv-table tr {
    border-top: 1px solid #555555;
}

.sm-kv-table.short tr {
    border-top: none;
}

.sm-kv-table td,
.sm-kv-table th {
    padding: 5px 0 0 20px;
}

.sm-kv-table td:first-child,
.sm-kv-table th:first-child {
    padding-left: 0;
}

.sm-kv-table.x-1 td:first-child,
.sm-kv-table.x-2 td:first-child,
.sm-kv-table.x-2 td:nth-child(2) {
    text-align: center;
}

.sm-kv-table .note {
    font-style: italic;
    font-size: smaller;
    margin-left: 10px;
}

.sm-kv-table .note:before {
    content: '(';
}

.sm-kv-table .note:after {
    content: ')';
}

/* Tutorial navigation */

.sm-tutorial-nav .next {
    background-color: rgb(127,185,35);
    color: #FFF;
    font-size: 16pt;
    margin-bottom: 10px;
}

.sm-tutorial-nav .prev {
    background-color: #333;
    color: #FFF;
    font-size: 13pt;
}

.sm-tutorial-nav .title {
    font-weight: bold;
}

.sm-tutorial-nav .next a,
.sm-tutorial-nav .next a:visited,
.sm-tutorial-nav .next a:hover,
.sm-tutorial-nav .next a:active,
.sm-tutorial-nav .prev a,
.sm-tutorial-nav .prev a:visited,
.sm-tutorial-nav .prev a:hover,
.sm-tutorial-nav .prev a:active {
    color: #FFF;
    /* We want the link to fill its whole container */
    display: block;
    width: 100%;
    height: 100%;
}

.sm-tutorial-nav .next a {
    /* Padding goes inside the link so it's clickable */
    padding: 20px;
}

.sm-tutorial-nav .prev a {
    /* Padding goes inside the link so it's clickable */
    padding: 15px 20px;
}

/* Legal page styles */

.legal .subtitles > p {
    font-weight: 500;
    margin-top: 0;
}

.legal .subtitles > p:first-child {
    margin-top: 10px;
}

.legal h2 {
    font-weight: 500;
    font-size: 1;
}

.legal .def {
    font-weight: 500;
    font-style: italic;
}

.legal .h1 {
    font-weight: 500;
}

.legal .h2 {
    font-style: italic;
}
