:root {
    /* fonts (exact ReadMe stacks) */
    --rm-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --rm-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;

    /* colours: black and white only (greys = black at lower opacity) */
    --rm-text: #000000;               /* body / headings          */
    --rm-text-2: rgba(0, 0, 0, .75);  /* sidebar links            */
    --rm-text-3: rgba(0, 0, 0, .55);  /* sidebar headings, ToC    */
    --rm-link: #000000;               /* links / active           */
    --rm-link-bg: rgba(0, 0, 0, .06);
    --rm-border: rgba(0, 0, 0, .12);
    --rm-code-bg: rgba(0, 0, 0, .05);
    --rm-header-top: #000000;         /* header bar (solid black) */
    --rm-header-bottom: #000000;
    --rm-info: #000000;               /* callout left border      */
    --rm-info-bg: rgba(0, 0, 0, .04);
    --rm-bg: #ffffff;                 /* page background */
    --rm-hover: rgba(0, 0, 0, .05);
    --rm-side-active: var(--rm-link); /* active sidebar text */
    --rm-pag: var(--rm-link);         /* Previous / Next links */
    --rm-toc-line: rgba(0, 0, 0, .075);
    --rm-header-line: rgba(0, 0, 0, .1);

    /* layout (exact) */
    --rm-header-h: 49px;
    --rm-sidebar-w: 288px;
    --rm-article-w: 690px;
    --rm-toc-w: 280px;
}


:root[data-rm-theme="dark"] {
    color-scheme: dark;
    --rm-bg: #000000;
    --rm-text: #ffffff;
    --rm-text-2: rgba(255, 255, 255, .8);
    --rm-text-3: rgba(255, 255, 255, .6);
    --rm-link: #ffffff;
    --rm-link-bg: rgba(255, 255, 255, .1);
    --rm-side-active: #ffffff;
    --rm-pag: #ffffff;
    --rm-border: rgba(255, 255, 255, .15);
    --rm-code-bg: rgba(255, 255, 255, .08);
    --rm-info: #ffffff;
    --rm-info-bg: rgba(255, 255, 255, .06);
    --rm-hover: rgba(255, 255, 255, .06);
    --rm-toc-line: rgba(255, 255, 255, .075);
    --rm-header-line: rgba(255, 255, 255, .1);
}

/* ---------- base ---------- */
html, body:is(.fixed-left, .fixed-left-void, .mobile) {
    background: var(--rm-bg);
    font-family: var(--rm-font);
    color: var(--rm-text);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
body:is(.fixed-left, .fixed-left-void, .mobile) .content-page,
body:is(.fixed-left, .fixed-left-void, .mobile) #wrapper { background: var(--rm-bg); }

/* ---------- header bar ---------- */
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar {
    height: var(--rm-header-h);
    background: #000000;
    box-shadow: rgba(255, 255, 255, .15) 0 1px 0 0;
    border: 0;
}
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .topbar-left {
    height: var(--rm-header-h);
    background: transparent;
    border: 0;
}
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .navbar-default { background: transparent; border: 0; min-height: var(--rm-header-h); }

body:is(.fixed-left, .fixed-left-void, .mobile) .topbar #logo-inside { padding: 5px; margin-top: 7.5px; display: inline-block; }
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar #logo-inside img { filter: brightness(0) invert(1); height: 24px !important; max-height: 24px; width: auto !important; max-width: 115px; object-fit: contain; display: block; }
/* old header buttons (fullscreen, home) are replaced by the ReadMe ones */
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .top-navbar { display: none !important; }
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .navbar-right .iconify > a > i,
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .navbar-right .iconify > a:focus > i,
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .button-menu-mobile { color: #ffffff !important; }
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .navbar-right .iconify > a {
    border-radius: 6px;
    padding: 7px 10px;
    margin-top: 8px;
}
body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .navbar-right .iconify > a:hover { background: rgba(255, 255, 255, .1); }

/* ---------- sidebar ---------- */
body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu.left {
    top: var(--rm-header-h);
    background: var(--rm-bg);
    border-right: 0;
    box-shadow: var(--rm-border) 1px 0 0 0;
}
body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .sidebar-inner,
body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .slimScrollDiv { background: var(--rm-bg); }
@media (min-width: 781px) {
    #wrapper:not(.enlarged) .side-menu.left { width: var(--rm-sidebar-w); }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .topbar-left,
    #wrapper:not(.enlarged) .topbar .topbar-left { width: 145px !important; padding-left: 50px; }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .button-menu-mobile { display: none; }
    #wrapper:not(.enlarged) .content-page { margin-left: var(--rm-sidebar-w); }
}
/* the brand block under the search box is not part of the ReadMe sidebar */
body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .profile-info,
body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu hr.divider { display: none; }

body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .navbar-form { padding: 20px 15px 4px; margin: 0; border: 0; box-shadow: none; }
body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .navbar-form .form-control {
    height: 32px;
    border-radius: 6px;
    border: .8px solid var(--rm-border);
    box-shadow: none;
    background: var(--rm-bg);
    color: var(--rm-text);
    font-family: var(--rm-font);
    font-size: 13.3333px;
}

body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .navbar-form { display: none; }

#sidebar-menu { font-family: var(--rm-font); padding: 8px 15px 24px; }
#sidebar-menu a { font-family: var(--rm-font); }
#sidebar-menu > ul > li { background: transparent; }

/* top-level items = ReadMe section headings (API INTEGRATION, FEATURES, ...) */
#sidebar-menu > ul > li > a,
#sidebar-menu > ul > li > a:hover,
#sidebar-menu > ul > li > a.subdrop,
#sidebar-menu > ul > li > a.active,
#sidebar-menu > ul > li > a.active.subdrop {
    background: transparent !important;
    color: var(--rm-text-3) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 15.9996px;
    letter-spacing: .24px;
    text-transform: uppercase;
    padding: 0 0 0 10px;
    margin: 24px 0 8px;
    border: 0;
}
#sidebar-menu > ul > li:first-child > a { margin-top: 8px; }
#sidebar-menu > ul > li > a > img,
#sidebar-menu > ul > li > a > i,
#sidebar-menu > ul > li > a .pull-right { display: none !important; }
/* a top-level item that is itself a page (e.g. Getting Started) stays clickable */
#sidebar-menu > ul > li:not(.has_sub) > a:hover { color: var(--rm-text) !important; }
#sidebar-menu { padding-top: 20px; }

/* section headings are always open, as on ReadMe; groups inside a section
   (e.g. Notification/Callback) open and close - see readme-theme.js */
#wrapper:not(.enlarged) #sidebar-menu > ul > li > ul { display: block !important; }
#wrapper:not(.enlarged) #sidebar-menu > ul > li.has_sub > a { cursor: default; }
#wrapper:not(.enlarged) #sidebar-menu ul ul li.has_sub > ul { display: none !important; }
#wrapper:not(.enlarged) #sidebar-menu ul ul li.has_sub.rm-open > ul { display: block !important; }
#sidebar-menu ul ul li.has_sub > a { display: flex !important; align-items: center; justify-content: space-between; cursor: pointer; }
#sidebar-menu ul ul li.has_sub > a .pull-right { display: none !important; }
#sidebar-menu .rm-chev { width: 16px; height: 16px; flex: 0 0 auto; color: var(--rm-text-2); transition: transform .15s; }
#sidebar-menu li.has_sub.rm-open > a .rm-chev { transform: rotate(90deg); }
#sidebar-menu ul ul {
    background: transparent;
    border: 0;
    margin: 2px 0;
    padding: 0;
}
#sidebar-menu ul ul ul { margin: 0 0 0 10px; background: transparent; border: 0; }

/* page links */
#sidebar-menu ul ul a,
#sidebar-menu ul ul ul a,
#sidebar-menu ul ul ul ul a {
    display: block;
    font-family: var(--rm-font);
    font-size: 14px;
    font-weight: 450;
    line-height: 20.0004px;
    color: var(--rm-text-2);
    padding: 6.006px 5px 6.006px 10px;
    border-radius: 8px;
    background: transparent;
}
#sidebar-menu ul ul a:hover {
    color: var(--rm-text);
    background: var(--rm-hover);
    text-decoration: none;
}
#sidebar-menu ul ul li a.active,
#wrapper.enlarged #sidebar-menu ul ul li a.active {
    color: var(--rm-side-active) !important;
    background: var(--rm-link-bg) !important;
}


/* ---------- content column + "On this page" column ---------- */
@media (min-width: 781px) {
    body:is(.fixed-left, .fixed-left-void, .mobile) .content-page {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: clip;
    }
}
body:is(.fixed-left, .fixed-left-void, .mobile) .content-page > .content {
    flex: 0 1 var(--rm-article-w);
    width: 100%;
    max-width: var(--rm-article-w);
    min-width: 0;
    margin-top: var(--rm-header-h);
    padding: 32px;
    font-family: var(--rm-font);
    font-size: 15px;
    line-height: 22.5px;
    color: var(--rm-text);
}
@media (max-width: 780px) {
    body:is(.fixed-left, .fixed-left-void, .mobile) .content-page > .content { max-width: none; padding: 24px 16px; }
}

/* ---------- page header ---------- */
.content .page-heading { margin: 0; padding: 0; }
.content .page-heading h1,
.content .page-heading h1.HeaderMainContent,
.content .page-heading h1.HeaderMainContent.scrollDone {
    position: static !important;
    margin: 0 0 32px !important;
    padding: 0 0 32px;
    border-bottom: .8px solid var(--rm-border);
    font-family: var(--rm-font);
    font-size: 31px !important;
    font-weight: 600;
    line-height: 39.8567px;
    color: var(--rm-text) !important;
    z-index: auto !important;
}
.content .page-heading h1 > i.fa { display: none; }
.content .page-heading h1 + br { display: none; }

/* ---------- headings ---------- */
.content h2 {
    position: relative;
    font-family: var(--rm-font);
    font-size: 22.5px !important;        /* dev.css forces h2 to 16px */
    font-weight: 600 !important;
    line-height: 28.125px;
    color: var(--rm-text);
    margin: 28px 0 7.5px;
}
.content h3 {
    position: relative;
    font-family: var(--rm-font);
    font-size: 18.75px !important;
    font-weight: 600;
    line-height: 23.4375px;
    color: var(--rm-text);
    margin: 28px 0 7.5px;
}
.content h4 {
    position: relative;
    font-family: var(--rm-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 22.5px;
    color: var(--rm-text);
    margin: 22.5px 0 7.5px;
}
.content hr + p:empty + h2,
.content .page-heading + hr { margin-top: 0; }

/* heading anchor icon (left of the heading, on hover) */
.content .heading-anchor-icon {
    position: absolute;
    left: -23px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12.8px 3.2px 12.8px 0;
    font-size: 12.8px;
    line-height: 12.8px;
    color: var(--rm-text) !important;
    text-decoration: none !important;
    opacity: 0;
}
.content h2:hover .heading-anchor-icon,
.content h3:hover .heading-anchor-icon,
.content .heading-anchor-icon:focus { opacity: 1; }

/* ---------- body text ---------- */
.content p { margin: 0 0 15px; font-size: 15px !important; line-height: 22.5px; color: var(--rm-text); }
.content p:not([style*="center"]), .content li { text-align: left !important; }
.content p:empty { margin: 0; }
.content b, .content strong { font-weight: 600; }
.content ul, .content ol { margin: 0 0 15px; padding-left: 2em; }
.content li { margin: 0; font-size: 15px; line-height: 22.5px; color: var(--rm-text); }
.content h4, .content h5, .content b, .content strong, .content label { color: var(--rm-text); }
.content li + li { margin-top: 3.75px; }
.content hr {
    border: 0;
    border-top: .8px solid var(--rm-border);
    margin: 28px 0;
}
.content a:not(.btn),
.content a.pagelinks,
.content a.pagelinks:hover { color: var(--rm-link) !important; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.content a:not(.btn):hover { text-decoration-thickness: 2px; }
/* buttons inside pages (e.g. "Show all modes & brands") = ReadMe primary button */
.content a.btn, .content button.btn {
    display: inline-block;
    width: auto !important;
    background: var(--rm-text) !important;
    border: 0 !important;
    border-radius: 6px;
    color: var(--rm-bg) !important;
    font-family: var(--rm-font);
    font-size: 14px;
    font-weight: 500;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    box-shadow: none !important;
    text-decoration: none !important;
}
.content a.btn:hover, .content button.btn:hover { opacity: .8; }
.content .awesomeButton { width: auto !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* inline code */
.content code {
    font-family: var(--rm-mono) !important;
    font-style: normal !important;
    font-size: 13.5px !important;
    line-height: 20.25px;
    color: var(--rm-text) !important;
    background: var(--rm-code-bg) !important;
    border: 0;
    border-radius: 3px;
    padding: 2.7px 5.4px;
    word-break: break-word;
}

/* ---------- callouts (.bg-info) = ReadMe callout_info ---------- */
.content .bg-info {
    position: relative;
    margin: 0 0 15px;
    padding: 20px 20px 20px 48px;
    background: var(--rm-info-bg) !important;
    border: 0 !important;
    border-left: 3.2px solid var(--rm-info) !important;
    border-radius: 2px;
    color: var(--rm-text);
    font-size: 15px;
    line-height: 22.5px;
    text-align: left;
    word-break: normal;
}
.content .bg-info > i.fa-info-circle:first-child { display: none; }
.content .bg-info::before {
    content: "i";
    position: absolute;
    left: 20px;
    top: 22px;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--rm-text);
    border-radius: 50%;
    color: var(--rm-text);
    font-family: Georgia, serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    box-sizing: border-box;
}
.content .bg-info font:nth-of-type(1) { color: var(--rm-text) !important; font-weight: 600; }

/* ---------- tables (ReadMe markdown tables) ---------- */
.content table {
    display: block;
    overflow-x: auto;
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 22.5px;
}
.content table th,
.content table td {
    border: .8px solid var(--rm-border);
    padding: 6px 13px;
    vertical-align: top;
    text-align: left;
}
.content table th {
    background: var(--rm-code-bg) !important;
    color: var(--rm-text) !important;
    font-size: 15px !important;
    font-weight: 600;
}
.content table td { color: var(--rm-text); background: var(--rm-bg); }
.content table tr:nth-child(odd),
.content table tr:nth-child(even) { background: var(--rm-bg); }
.content table td[data-label="Parameter"] { font-family: var(--rm-mono); font-size: 13.5px; }

/* ---------- code blocks ---------- */
.content pre,
.content pre.prettyprint {
    position: relative;
    margin: 0 0 15px;
    padding: 13.5px !important;
    background: var(--rm-code-bg) !important;
    color: var(--rm-text) !important;
    border: 0 !important;
    border-radius: 3px;
    font-family: var(--rm-mono);
    font-size: 13.5px;
    line-height: 19.575px;
    white-space: pre;
    word-break: normal;
    overflow-x: auto;
}
/* code is black and white only: keywords bold, comments lighter */
.content pre .pln, .content pre .pun, .content pre .str, .content pre .lit, .content pre .dec,
.content pre .typ, .content pre .tag, .content pre .atn, .content pre .atv { color: var(--rm-text) !important; }
.content pre .kwd { color: var(--rm-text) !important; font-weight: 600; }
.content pre .com { color: var(--rm-text-3) !important; font-style: italic; }

/* multi-language snippets = ReadMe CodeTabs */
.content .cp-tabs {
    margin: 0 0 15px;
    border-radius: 3px;
    background: var(--rm-code-bg);
    overflow: hidden;
}
.content .cp-tabs .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 5px;
    min-height: 0;
    background: var(--rm-code-bg);
    border-bottom: .8px solid var(--rm-border) !important;
}
.content .cp-tabs .nav-tabs li {
    float: none;
    height: auto;
    margin: 0;
    padding: 8px 10px;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    color: var(--rm-text-3);
    font-family: var(--rm-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    box-shadow: none;
}
.content .cp-tabs .nav-tabs li:hover { color: var(--rm-text); }
.content .cp-tabs .nav-tabs li.active { color: var(--rm-text) !important; box-shadow: inset 0 -2px 0 var(--rm-text); }
.content .cp-tabs .nav-tabs li::after { display: none !important; }
.content .cp-tabs pre,
.content .cp-tabs pre.prettyprint { margin: 0; border-radius: 0; }

/* copy button (ReadMe .rdmd-code-copy) */
.rm-code-copy {
    position: absolute;
    top: 0;
    right: 0;
    margin: 6.66667px;
    padding: 3.33333px 9.33333px;
    background: var(--rm-code-bg);
    border: 0;
    border-radius: 3px;
    box-shadow: var(--rm-border) 0 0 0 1px inset;
    color: var(--rm-text);
    font-size: 13.3333px;
    line-height: 13.3333px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s;
    z-index: 2;
}
.content pre:hover .rm-code-copy, .rm-code-copy:focus { opacity: 1; }
.rm-code-copy.copied { color: var(--rm-link); }

/* ---------- right column: Copy Page + table of contents ---------- */
.rm-Aside {
    flex: 0 0 var(--rm-toc-w);
    width: var(--rm-toc-w);
    box-sizing: border-box;
    position: sticky;
    top: var(--rm-header-h);
    margin-top: var(--rm-header-h);
    padding: 30px 20px 30px 40px;
    max-height: calc(100vh - var(--rm-header-h));
    overflow-y: auto;
    font-family: var(--rm-font);
    font-size: 13px;
    line-height: 19.5px;
    color: var(--rm-text);
}
.rm-CopyPage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: transparent;
    border: .8px solid var(--rm-border);
    border-radius: 6px;
    color: var(--rm-text-2);
    font-family: var(--rm-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.rm-CopyPage:hover { background: var(--rm-hover); color: var(--rm-text); }
.rm-ToC {
    position: relative;
    margin-top: 12px;
    color: var(--rm-text-3);
}
.rm-ToC::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--rm-toc-line);
    border-radius: 2.002px;
}
.rm-ToC .toc-list { list-style: none; margin: 0; padding: 0; }
.rm-ToC .toc-list li { margin: 0; }
.rm-ToC .toc-list li + li { margin-top: 8px; }
.rm-ToC .toc-list .toc-children { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; }
.rm-ToC a {
    display: block;
    padding: 0 0 0 12px;
    color: var(--rm-text-3);
    font-size: 13px;
    line-height: 19.5px;
    text-decoration: none !important;
}
.rm-ToC a:hover { color: var(--rm-text); }
.rm-ToC a.active { color: var(--rm-text); }
@media (max-width: 1100px) { .rm-Aside { display: none; } }

/* ---------- article footer: divider, pagination, page rating ---------- */
.rm-ArticleFooter { margin-top: 32px; font-family: var(--rm-font); }
.rm-ArticleFooter .NextStepsDivider {
    border: 0;
    border-top: .8px solid var(--rm-border);
    margin: 8px 0;
}
.rm-Pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 0;
}
.rm-Pagination a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rm-pag) !important;
    font-size: 16px;
    line-height: 19.2px;
    text-decoration: none !important;
}
.rm-Pagination a:hover .rm-Pagination-text { text-decoration: underline; }
.rm-Pagination a.rm-Pagination-right { justify-self: end; text-align: right; }
.rm-Pagination .rm-icon { width: 16px; height: 16px; }
.rm-PageThumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 20px 0 0;
    font-size: 16px;
    color: var(--rm-text);
}
.rm-PageThumbs-label { margin-right: 6px; }
.rm-PageThumbs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--rm-text-2);
    font-family: var(--rm-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.rm-PageThumbs button:hover { background: var(--rm-hover); }

/* landing-page cards (Getting Started tiles, plugin tiles) = flat ReadMe cards */
.content .shadow,
.content .shadow:hover,
.content .full-content-center,
.content .plugin {
    box-shadow: none !important;
    border: .8px solid var(--rm-border) !important;
    border-radius: 8px;
    background: var(--rm-bg) !important;
    transition: border-color .15s;
}
.content .shadow:hover,
.content .full-content-center:hover { border-color: var(--rm-link) !important; }
.content .widget-header > h2,
.content .full-content-center h2,
.content .plugin h2,
.content .plugin h3 {
    font-family: var(--rm-font);
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--rm-text) !important;
    margin: 12px 0 0;
}
.content .not-logged-avatar,
.content .int { background-color: var(--rm-link-bg) !important; }

/* site footer line */
#footerText, .content > footer {
    background: transparent;
    border: 0;
    color: var(--rm-text-3);
    font-size: 13px;
}

/* ---------- icons (inline SVG, 24x24, stroke = currentColor) ---------- */
.rm-icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: -0.125em; }
.content .heading-anchor-icon .rm-icon { width: 12.8px; height: 12.8px; }
.rm-code-copy .rm-icon { width: 13.3333px; height: 13.3333px; vertical-align: middle; }
.rm-CopyPage .rm-icon, .rm-PageThumbs .rm-icon { width: 14px; height: 14px; }

/* ---------- "Updated … ago" line (ReadMe .UpdatedAt / .DateLine) ---------- */
.rm-UpdatedAt { padding: 20px 0 0; }
.rm-UpdatedAt .DateLine { margin: 13px 0; color: var(--rm-text-3); font-size: 13px; font-weight: 500; line-height: 19.5px; }

/* ---------- header: tabs + search + Log In + theme toggle ---------- */
.rm-Header-tabs {
    position: absolute;
    left: 155px;
    top: 8px;
    display: flex;
    gap: 4px;
    z-index: 3;
}
.rm-Header-right {
    position: absolute;
    right: 10px;
    top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
.rm-Header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: .8px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #ffffff !important;
    font-family: var(--rm-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.rm-Header-link:hover, .rm-Header-link.active { background: rgba(255, 255, 255, .1); }
.rm-Header-link .rm-icon { width: 16px; height: 16px; }
.rm-ThemeToggle { width: 32px; padding: 0; justify-content: center; }
.rm-SearchToggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 150px;
    height: 32px;
    padding: 0 8px;
    background: #ffffff;
    border: .8px solid transparent;
    border-radius: 6px;
    color: #000000;
    font-family: var(--rm-font);
    font-size: 13.3333px;
    cursor: pointer;
}
.rm-SearchToggle .rm-icon { width: 16px; height: 16px; color: rgba(0, 0, 0, .55); }
.rm-SearchToggle-placeholder { flex: 1; text-align: left; color: rgba(0, 0, 0, .55); font-size: 14px; font-weight: 400; }
.rm-SearchToggle-shortcut { color: rgba(0, 0, 0, .4); font-size: 11px; font-weight: 600; letter-spacing: 1.1px; }
:root[data-rm-theme="dark"] .rm-SearchToggle { background: transparent; border-color: rgba(255, 255, 255, .25); color: #ffffff; }
:root[data-rm-theme="dark"] .rm-SearchToggle-placeholder,
:root[data-rm-theme="dark"] .rm-SearchToggle .rm-icon,
:root[data-rm-theme="dark"] .rm-SearchToggle-shortcut { color: rgba(255, 255, 255, .6); }
@media (max-width: 1023px) {
    .rm-Header-tabs { display: none; }
}
@media (max-width: 780px) {
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .button-menu-mobile { display: inline-block; }
    .rm-SearchToggle { width: 32px; padding: 0; justify-content: center; }
    .rm-SearchToggle-placeholder, .rm-SearchToggle-shortcut { display: none; }
    .rm-Header-right .rm-LogIn { display: none; }
}

/* ---------- search window (ReadMe SearchModal, classic) ---------- */
.rm-SearchModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 150px;
    background: rgba(255, 255, 255, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: var(--rm-font);
}
:root[data-rm-theme="dark"] .rm-SearchModal { background: rgba(0, 0, 0, .6); }
.rm-SearchModal.open { display: flex; }
.rm-SearchModal-panel {
    width: min(1000px, calc(100vw - 32px));
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    background: var(--rm-bg);
    border-radius: 8px;
    box-shadow: 0 0 0 .8px var(--rm-border), 0 10px 40px rgba(0, 0, 0, .2);
    overflow: hidden;
}
.rm-SearchBox { position: relative; padding: 20px 20px 0; }
.rm-SearchBox .rm-icon { position: absolute; left: 32px; top: 32px; width: 16px; height: 16px; color: var(--rm-text-3); }
.rm-SearchBox input {
    width: 100%;
    height: 40px;
    padding: 1px 12px 1px 36px;
    background: var(--rm-bg);
    border: .8px solid var(--rm-border);
    border-radius: 6px;
    color: var(--rm-text);
    font-family: var(--rm-font);
    font-size: 15px;
    outline: none;
}
.rm-SearchBox input:focus { border-color: var(--rm-link); box-shadow: 0 0 0 3px var(--rm-link-bg); }
.rm-SearchTabs { display: flex; gap: 4px; padding: 12px 20px 0; border-bottom: .8px solid var(--rm-border); }
.rm-SearchTabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--rm-text-2);
    font-family: var(--rm-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.rm-SearchTabs button.active { color: var(--rm-text); border-bottom-color: var(--rm-text); }
.rm-SearchTabs .rm-icon { width: 14px; height: 14px; }
.rm-SearchResults { overflow-y: auto; min-height: 300px; padding: 8px 12px 16px; }
.rm-SearchEmpty { padding: 100px 0; text-align: center; color: var(--rm-text-2); font-size: 14px; }
.rm-SearchEmpty .rm-icon { display: block; margin: 0 auto 8px; width: 16px; height: 16px; }
.rm-SearchResult {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--rm-text) !important;
    text-decoration: none !important;
}
.rm-SearchResult:hover, .rm-SearchResult.focus { background: var(--rm-hover); }
.rm-SearchResult-title { font-size: 15px; font-weight: 600; }
.rm-SearchResult-path { font-size: 13px; color: var(--rm-text-3); margin-top: 2px; }
.rm-SearchResult mark { background: var(--rm-link-bg); color: inherit; padding: 0; }

/* ---------- dark mode: older page parts with fixed light colours ---------- */
:root[data-rm-theme="dark"] .content,
:root[data-rm-theme="dark"] .content p,
:root[data-rm-theme="dark"] .content li,
:root[data-rm-theme="dark"] .content td,
:root[data-rm-theme="dark"] .content font,
:root[data-rm-theme="dark"] .content span:not([class*="rm-"]):not(.pln):not(.pun):not(.str):not(.kwd):not(.com):not(.typ):not(.lit):not(.tag):not(.atn):not(.atv):not(.dec) { color: var(--rm-text); }
:root[data-rm-theme="dark"] .content .widget-header,
:root[data-rm-theme="dark"] .content .login-block,
:root[data-rm-theme="dark"] .content .login-wrap,
:root[data-rm-theme="dark"] .content .panel,
:root[data-rm-theme="dark"] .content .well,
:root[data-rm-theme="dark"] .content select,
:root[data-rm-theme="dark"] .content input,
:root[data-rm-theme="dark"] .content textarea { background: transparent !important; color: var(--rm-text) !important; border-color: var(--rm-border) !important; }
:root[data-rm-theme="dark"] .content img { opacity: .92; }

/* ---------- black and white: remove leftover brand colours set by the old site scripts ---------- */
.pace .pace-progress { background: var(--rm-text) !important; }
.pace .pace-activity { border-top-color: var(--rm-text) !important; border-left-color: var(--rm-text) !important; }
.content .full-content-center,
.content .plugin,
.content .coming_soon,
.content .modal-content { border-color: var(--rm-border) !important; }
.content .coming_soon,
.content #search-label { color: var(--rm-text) !important; }
.content button[id$="btn"], .content button[id$="Btn"], .content a.btn[id$="btn"], .content a.btn[id$="Btn"] {
    background: var(--rm-text) !important; color: var(--rm-bg) !important; border-color: var(--rm-text) !important;
}
/* old coloured button styles (btn-blue-2, btn-primary, btn-success, ...) */
.content .btn[class*="btn-"],
.content [class*="btn-blue"],
.content .btn-primary, .content .btn-success, .content .btn-info, .content .btn-warning, .content .btn-danger {
    background: var(--rm-text) !important; color: var(--rm-bg) !important; border-color: var(--rm-text) !important; box-shadow: none !important;
}
.content .btn-default { background: var(--rm-bg) !important; color: var(--rm-text) !important; border: .8px solid var(--rm-border) !important; }

/* ---------- code-sample dropdowns (Mode / Brand / Token Type / Auth Method / Language …) ----------
   The old styles give every dropdown a fixed 200px width plus a 150px floated label, so rows of
   3-4 dropdowns overflow the 690px article column. Labels now sit above each dropdown and the
   dropdowns share the row width. */
.content div[style*="display: flex"]:has(> .selectedStylePt),
.content div[style*="display:flex"]:has(> .selectedStylePt) {
    flex-wrap: wrap;
    gap: 12px 16px !important;
    align-items: flex-end !important;
    margin-bottom: 15px;
}
.content div[style*="display: flex"] > .selectedStylePt,
.content div[style*="display:flex"] > .selectedStylePt {
    flex: 0 1 calc(50% - 8px);   /* always half the row: 2 per row, a lone one stays half width */
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
}
@media (min-width: 641px) {
    .content .selectedStylePt {
        display: inline-block;
        vertical-align: top;
        width: 260px;
        max-width: 100%;
        margin: 0 12px 15px 0;
    }
}
.content .labelSelected {
    float: none !important;
    display: block;
    width: auto !important;
    margin: 0 0 6px;
    font-family: var(--rm-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--rm-text);
}
.content .selectedStyle { position: relative; }
.content .selectedStyle::after { display: none !important; }
.content .selectedStyle select {
    width: 100% !important;
    max-width: 100%;
    height: 40px;
    padding: 0 32px 0 12px;
    background-color: var(--rm-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    border: .8px solid var(--rm-border) !important;
    border-radius: 6px !important;
    color: var(--rm-text) !important;
    font-family: var(--rm-font);
    font-size: 14px;
    text-overflow: ellipsis;
    box-shadow: none;
}
.content .selectedStyle select:focus { outline: none; border-color: var(--rm-text) !important; }
:root[data-rm-theme="dark"] .content .selectedStyle select {
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

/* code box fills its grey frame (no empty strip on the right) */
.content .cp-tabs pre,
.content .cp-tabs pre.prettyprint {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    float: none !important;
}

@media (max-width: 640px) {
    .content div[style*="display: flex"] > .selectedStylePt,
    .content div[style*="display:flex"] > .selectedStylePt { flex-basis: 100%; }
}
/* the "Language" dropdown is the phone-only stand-in for the code tabs: hide it on desktop */
@media (min-width: 641px) {
    .content .selectedStylePt.onlyForMobile,
    .content .onlyForMobile { display: none !important; }
}

/* ==========================================================================
   RESPONSIVE: tablets and phones (up to 990px, where init.js collapses the sidebar)
   Desktop above 990px is not affected by anything below.
   - sidebar becomes a slide-in menu opened with the ☰ button (readme-theme.js)
   - header stays black: ☰, logo, search icon, light/dark switch
   - API Documentation / API Reference tabs move to the top of the slide-in menu
   ========================================================================== */
.rm-Drawer-tabs { display: none; }
.rm-nav-backdrop { display: none; }

@media (max-width: 990px) {
    /* header */
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar { left: 0; right: 0; width: 100%; }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .topbar-left,
    #wrapper .topbar .topbar-left,
    #wrapper.enlarged .topbar .topbar-left {
        width: auto !important;
        padding-left: 6px !important;
        display: flex;
        align-items: center;
        gap: 6px;
        background: transparent !important;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .button-menu-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        order: -1;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent !important;
        color: #ffffff !important;
        font-size: 20px;
        line-height: 40px;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .button-menu-mobile:hover,
    body.rm-nav-open .topbar .button-menu-mobile { background: rgba(255, 255, 255, .12) !important; }
    #wrapper.enlarged .topbar .topbar-left .logo,
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar #logo-inside {
        display: inline-block !important;
        opacity: 1 !important;
        margin-top: 0;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .navbar-default { margin: 0; }
    /* old style.css pulls the logo 35px left and the menu button is absolutely placed:
       line them up as ☰ then logo */
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar .button-menu-mobile {
        position: static !important;
        top: auto; left: auto; right: auto;
        margin-top: 4.5px !important;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar #logo-inside {
        height: var(--rm-header-h);
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar #logo-inside h1 {
        margin: 0 !important;
        height: auto !important;
        line-height: 0;
        text-align: left;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .topbar #logo-inside img { height: 22px !important; max-height: 22px; }
    .rm-Header-right { right: 8px; gap: 6px; }

    /* sidebar = slide-in menu */
    body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu.left,
    #wrapper .side-menu.left,
    #wrapper.enlarged .left.side-menu {
        position: fixed !important;
        top: var(--rm-header-h) !important;
        bottom: 0 !important;
        left: 0 !important;
        width: min(var(--rm-sidebar-w), 85vw) !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1002 !important;
        transform: translateX(-105%);
        transition: transform .22s ease;
        overflow: hidden;
        box-shadow: var(--rm-border) 1px 0 0 0;
    }
    body.rm-nav-open .side-menu.left,
    body.rm-nav-open #wrapper .side-menu.left,
    body.rm-nav-open #wrapper.enlarged .left.side-menu {
        transform: none;
        box-shadow: 0 0 0 .8px var(--rm-border), 8px 0 24px rgba(0, 0, 0, .18);
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .slimScrollDiv,
    body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .sidebar-inner {
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .slimScrollBar,
    body:is(.fixed-left, .fixed-left-void, .mobile) .side-menu .slimScrollRail { display: none !important; }
    #sidebar-menu > ul > li > ul { display: block !important; }
    /* header.php limits the list to 500px with its own scrollbar; in the slide-in menu the whole
       menu scrolls instead */
    #sidebar-menu { max-height: none !important; overflow: visible !important; }

    .rm-nav-backdrop {
        display: block;
        position: fixed;
        inset: var(--rm-header-h) 0 0 0;
        z-index: 1001;
        background: rgba(0, 0, 0, .4);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }
    body.rm-nav-open .rm-nav-backdrop { opacity: 1; pointer-events: auto; }
    body.rm-nav-open { overflow: hidden; }

    /* API Documentation / API Reference at the top of the menu */
    .rm-Drawer-tabs {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 16px 15px 12px;
        border-bottom: .8px solid var(--rm-border);
    }
    .rm-Drawer-tabs a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 8px;
        color: var(--rm-text-2) !important;
        font-family: var(--rm-font);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none !important;
    }
    .rm-Drawer-tabs a.active { color: var(--rm-side-active) !important; background: var(--rm-link-bg); }
    .rm-Drawer-tabs .rm-icon { width: 16px; height: 16px; }

    /* page column: full width, no sidebar margin */
    body #wrapper .content-page,
    body #wrapper.enlarged .content-page {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
        display: block !important;
    }
    body:is(.fixed-left, .fixed-left-void, .mobile) .content-page > .content {
        max-width: var(--rm-article-w);
        margin-left: auto;
        margin-right: auto;
        padding: 28px 24px 32px;
    }
    .rm-Aside { display: none !important; }
    .open-right-sidebar .content-page > .content { opacity: 1; }
}

/* phones */
@media (max-width: 640px) {
    body:is(.fixed-left, .fixed-left-void, .mobile) .content-page > .content {
        max-width: none;
        padding: 20px 16px 28px;
    }
    .content .page-heading h1,
    .content .page-heading h1.HeaderMainContent,
    .content .page-heading h1.HeaderMainContent.scrollDone {
        font-size: 25px !important;
        line-height: 32px;
        margin-bottom: 20px !important;
        padding-bottom: 20px;
    }
    .content h2 { font-size: 20px !important; line-height: 26px; margin-top: 24px; }
    .content h3 { font-size: 17px !important; line-height: 22px; }
    .content .heading-anchor-icon { display: none; }
    .content img, .content video, .content iframe { max-width: 100% !important; height: auto; }
    .content table { -webkit-overflow-scrolling: touch; }
    .content pre, .content pre.prettyprint { font-size: 12.5px; }
    .content .bg-info { padding: 16px 16px 16px 44px; }
    .content .bg-info::before { left: 16px; top: 18px; }
    .content .row { margin-left: 0; margin-right: 0; }
    .rm-Pagination { grid-template-columns: 1fr; gap: 14px; }
    .rm-Pagination a.rm-Pagination-right { justify-self: start; text-align: left; }
    .rm-PageThumbs { flex-wrap: wrap; }
    .rm-SearchModal { padding-top: 56px; }
    .rm-SearchModal-panel { width: calc(100vw - 16px); max-height: calc(100vh - 72px); }
    .rm-SearchTabs { overflow-x: auto; white-space: nowrap; }
    .rm-SearchBox { padding: 12px 12px 0; }
    .rm-SearchBox .rm-icon { left: 24px; top: 24px; }
    .rm-SearchTabs { padding: 10px 12px 0; }
}