.mad-wrapper {
    width: min(100%, 80em);
    margin: auto;
    padding-top: max(3vw, 1rem);
}

@media screen and (min-width: 900px) {
    .mad-wrapper {
        width: calc(100% - 5em);
        max-width: 82em;
        margin-right: 0;
    }
}

@media screen and (min-width: 140rem) {
    .mad-wrapper {
        margin-right: auto;
    }
}

.mad-contentSection {
    max-width: 44rem;
    margin-bottom: 2em;
}

.mad-contentSection:last-child {
    min-height: calc(100dvh - 6em)
}

.mad-contentSection__intro {
    font-size: clamp(1em,1.953125vw,1.25em);
}

.mad-pageSubTitle {
    display: block;
    font-size: 1.5rem;
    opacity: .7;
}

/**
 * Example code
 */

.mad-wrapper pre {
    display: block;
    min-width: calc(100% - 3em);
    margin: 0 0 1em;
    padding: .5rem 1rem;
    border-radius: 4px;
    white-space: pre-wrap;
    direction: ltr;
    word-break: break-word;
    text-align: left;
    word-wrap: normal;
    hyphens: none;
    font-size: .875rem;
}

.mad-exampleBox {
    position: relative;
    margin-block: .5rem 3rem;
    overflow: hidden;
    border-radius: 6px;
    color: #ccc;
    background: #2f2c3a;
}

.mad-exampleBox--token {
    margin-bottom: 1rem;
    color: #000;
    background: #F6F5FA;
}

/**
 * Method style is a copy of apiMethod component styles: ApiMethod.css
 */

.apiDocumentation__method {
    display: inline-block;
    min-width: 4em;
    height: 1.3em;
    padding: 0 .4em;
    border-radius: 0.3em;
    font: 500 .875em/1.3em arial, sans-serif;
    text-align: center;
    color: #000;
    background: #ccc;
}

.apiDocumentation__method--GET {
    background: #ded7fb;
}

.apiDocumentation__method--POST {
    background: #bbeee5;
}

.apiDocumentation__method--PUT {
    background: #ffcdac;
}

.apiDocumentation__method--DELETE {
    background:#ffd4d4;
}

/**
 * Info box
 */

.mad-notecard {
    display: block;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 4px;
    background: #ddd no-repeat 1rem 1rem;
}

.mad-notecard--important {
    background-color: #e8e2ff;
}

.mad-notecard--caution {
    border: 2px dashed #FF822F;
    background-color: #FFF7D6;
}

.mad-notecard--invalid {
    border: 2px dashed #ff3e2c;
    background-color: #ffe9e7;
}

.mad-notecard--noaccess {
    background: #f2f2f2;
}

.mad-notecard::before {
    content: '';
    float: left;
    width: 1.3em;
    height: 1.3em;
    margin-left: -2em;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.mad-notecard--important::before {
    background: #481FFF;
    mask-image: url(../img/info-circle.svg);
    -webkit-mask-image: url(../img/info-circle.svg)
}

.mad-notecard--caution::before,
.mad-notecard--invalid::before {
    mask-image: url(../img/exclamation-circle.svg);
    -webkit-mask-image: url(../img/exclamation-circle.svg);
}

.mad-notecard--noaccess::before {
    mask-image: url(../img/ban.svg);
    -webkit-mask-image: url(../img/ban.svg);
    background-color: #8e8e8e;
}

.mad-notecard--caution::before {
    background: #FF822F;
}

.mad-notecard--invalid::before {
    background: #ff3e2c;
}

.mad-notecard > h3 {
    font-size: 1em;
}

.mad-notecard > *:first-child {
    margin-top: 0;
}

.mad-notecard > *:last-child {
    margin-bottom: 0;
}