/*
 * SmartBtn — /faq/automatic/apiUsage
 *
 * Was a bare, out-of-design article inherited from the v1 layout (no site
 * chrome styling, duplicated content baked into a JS i18n string that had
 * drifted from the visible HTML, invalid </br> tags). Restyled as a proper
 * documentation article on the site's own v2 palette, loaded ONLY by this
 * page -- does not touch the shared v1 stylesheet other FAQ articles use.
 */

.api-doc {
    font-family: 'Gilroy', 'Roboto', Arial, sans-serif;
    color: #211D2E;
    background: #F7FAFF;
    padding: 48px 16px 80px;
}

.api-doc,
.api-doc * {
    box-sizing: border-box;
}

.api-doc__container {
    max-width: 860px;
    margin: 0 auto;
}

.api-doc__breadcrumb {
    font-size: 14px;
    color: #6B7590;
    margin-bottom: 18px;
}

.api-doc__breadcrumb a {
    color: #2563EB;
    text-decoration: none;
}

.api-doc__breadcrumb a:hover {
    text-decoration: underline;
}

.api-doc__title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 14px;
    color: #211D2E;
}

.api-doc__lead {
    font-size: 17px;
    line-height: 1.6;
    color: #42526E;
    margin: 0 0 24px;
}

.api-doc__lead a,
.api-doc a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.api-doc__lead a:hover,
.api-doc a:hover {
    text-decoration: underline;
}

.api-doc__callout {
    background: #FFFFFF;
    border: 1px solid #E3ECFB;
    border-left: 4px solid #2563EB;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 36px;
}

.api-doc__callout strong {
    color: #211D2E;
}

.api-doc__section {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 102, 204, 0.08);
    padding: 32px 32px 28px;
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .api-doc__section {
        padding: 24px 18px 20px;
    }
}

.api-doc__section h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #211D2E;
}

.api-doc__section > p {
    font-size: 15px;
    line-height: 1.6;
    color: #42526E;
    margin: 0 0 20px;
}

.api-doc__checklist {
    margin: 0 0 20px;
    padding-left: 22px;
}

.api-doc__checklist li {
    font-size: 15px;
    line-height: 1.65;
    color: #333A4D;
    margin-bottom: 10px;
}

.api-doc__checklist li:last-child {
    margin-bottom: 0;
}

.api-doc pre {
    background: #1B1E2A;
    color: #E7ECFB;
    border-radius: 12px;
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 4px;
}

.api-doc pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.api-doc code {
    background: #EEF3FE;
    color: #1745B8;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.92em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.api-doc__method {
    border-top: 1px solid #EEF2FA;
    padding: 24px 0;
}

.api-doc__method:first-of-type {
    border-top: none;
    padding-top: 8px;
}

.api-doc__method:last-child {
    padding-bottom: 0;
}

.api-doc__method-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.api-doc__method-name {
    font-size: 17px;
    font-weight: 700;
    color: #211D2E;
    margin: 0;
}

.api-doc__badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 11px;
    letter-spacing: 0.2px;
}

.api-doc__badge--free {
    background: #E7F8EF;
    color: #157A45;
}

.api-doc__badge--gated {
    background: #FFF3E0;
    color: #B4600B;
}

.api-doc__badge--legacy {
    background: #F0F1F5;
    color: #5B637A;
}

.api-doc__method-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #42526E;
    margin: 0 0 14px;
}

.api-doc__table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}

.api-doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.api-doc table th {
    text-align: left;
    color: #6B7590;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.4px;
    padding: 8px 12px;
    border-bottom: 2px solid #EEF2FA;
    white-space: nowrap;
}

.api-doc table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F2F5FC;
    color: #333A4D;
    vertical-align: top;
}

.api-doc table td:first-child {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #1745B8;
    white-space: nowrap;
}

.api-doc__returns {
    font-size: 14px;
    color: #42526E;
    margin: 0 0 4px;
}

.api-doc__section--limits ul {
    margin: 0;
    padding-left: 22px;
}

.api-doc__section--limits li {
    font-size: 15px;
    line-height: 1.65;
    color: #333A4D;
    margin-bottom: 12px;
}

.api-doc__section--limits li:last-child {
    margin-bottom: 0;
}

.api-doc__anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.api-doc__anchor-nav a {
    background: #FFFFFF;
    border: 1px solid #E3ECFB;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
}

.api-doc__anchor-nav a:hover {
    background: #EAF2FF;
    text-decoration: none;
}
