/* Developer documentation shares the portal's local Inter font and Finech tokens. */
.developer-page {
    --docs-muted: var(--neutral-70);
    --docs-code: var(--neutral-100);
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-body-medium);
    line-height: var(--line-height-body);
    letter-spacing: var(--letter-spacing-finech);
}
.developer-page * {
    box-sizing: border-box;
}
.developer-page [hidden] {
    display: none !important;
}
.developer-page a:not(.button) {
    color: var(--blue);
    text-underline-offset: 4px;
}
.developer-page a:not(.button):hover {
    color: var(--blue-hover);
}
.developer-page :focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}
.developer-page > nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
    padding: 16px max(28px, calc((100vw - 1296px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 97%);
}
.developer-page > nav > div {
    display: flex;
    align-items: center;
    gap: 30px;
}
.developer-page > nav > div > a {
    text-decoration: none;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
}
.developer-page > nav .header-portal {
    color: var(--ink);
}
.developer-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.8px;
    white-space: nowrap;
    text-decoration: none;
}
.developer-page .brand img {
    flex-shrink: 0;
}
.skip-link {
    position: fixed;
    z-index: 30;
    top: -80px;
    left: 16px;
    padding: 12px 18px;
    background: white;
    border: 1px solid var(--blue);
    border-radius: 8px;
}
.skip-link:focus {
    top: 12px;
}
.docs-layout {
    display: grid;
    grid-template-columns: 218px minmax(0, 900px);
    gap: 70px;
    max-width: 1296px;
    margin: 0 auto;
    padding: 48px 28px 90px;
}
.docs-sidebar {
    position: sticky;
    top: 116px;
    align-self: start;
    max-height: calc(100dvh - 145px);
    overflow-y: auto;
    padding: 0 10px 12px 0;
}
.sidebar-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--docs-muted);
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.2px;
    margin-bottom: 19px;
}
.sidebar-label span {
    padding: 1px 7px;
    color: var(--blue);
    background: var(--blue-surface);
    border: 1px solid var(--blue-border);
    border-radius: 5px;
    font-size: 10px;
    letter-spacing: 0;
}
.docs-nav {
    display: grid;
    gap: 3px;
}
.docs-nav a {
    padding: 8px 11px;
    color: var(--docs-muted);
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}
.docs-nav a:hover {
    background: var(--canvas);
}
.docs-nav a[aria-current] {
    color: var(--blue);
    background: var(--blue-surface);
    font-weight: 600;
    box-shadow: inset 2px 0 var(--blue);
}
.sidebar-download {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding: 20px 10px 0;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}
.sidebar-footnote {
    color: var(--neutral-60);
    font-size: 11px;
    padding: 0 10px;
    margin-top: 15px;
}
.docs-content {
    min-width: 0;
}
.docs-hero,
.docs-section {
    scroll-margin-top: 108px;
}
.docs-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--docs-muted);
    font-size: 10px;
    letter-spacing: 1.2px;
    font-weight: var(--font-weight-medium);
}
.api-tag {
    padding: 3px 9px;
    border: 1px solid var(--blue-border);
    border-radius: 6px;
    color: var(--blue);
    background: var(--blue-surface);
    font-size: 11px;
    letter-spacing: 0;
}
.docs-hero h1 {
    margin: 23px 0 18px;
    font-size: clamp(var(--font-size-h4), 3.3vw, var(--font-size-h2));
    font-weight: 600;
    letter-spacing: var(--letter-spacing-finech);
    line-height: var(--line-height-heading);
}
.docs-lead {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--docs-muted);
}
.docs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 27px 0 34px;
}
.api-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 18px;
    padding: 23px 24px;
    margin: 25px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--neutral-20);
}
.api-flow > div {
    display: grid;
    gap: 7px;
    min-width: 0;
}
.api-flow .flow-step {
    font-size: 9px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.8px;
    color: var(--blue);
}
.api-flow code {
    font-size: 12px;
    font-weight: 600;
}
.api-flow > div > span:last-child {
    font-size: 11px;
    color: var(--docs-muted);
}
.flow-arrow {
    align-self: center;
    color: var(--neutral-60);
    font-size: 18px;
}
.docs-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}
.section-kicker {
    font-size: 10px;
    color: var(--blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}
.docs-section h2 {
    font-size: var(--font-size-h4);
    font-weight: 600;
    letter-spacing: -0.9px;
    line-height: 1.25;
    margin: 13px 0 20px;
}
.docs-section h3 {
    font-size: var(--font-size-h6);
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 28px 0 12px;
    line-height: 1.4;
}
.docs-section h4 {
    font-size: 13px;
    margin: 22px 0 12px;
}
.docs-section p {
    margin: 14px 0;
}
.docs-section ul,
.docs-section ol {
    padding-left: 22px;
}
.docs-section li {
    margin: 9px 0;
}
.developer-page code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: normal;
    font-size: 0.88em;
    overflow-wrap: anywhere;
}
.docs-section p code,
.docs-section li code {
    padding: 2px 4px;
    border: 1px solid var(--neutral-30);
    border-radius: 4px;
    color: var(--neutral-80);
    background: var(--neutral-20);
}
.code-example {
    margin: 20px 0;
    border: 1px solid var(--neutral-80);
    border-radius: var(--radius-card);
    background: var(--docs-code);
    color: var(--neutral-30);
    overflow: hidden;
}
.code-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--neutral-80);
    background: var(--neutral-90);
    font-size: 11px;
    line-height: 1.5;
}
.code-toolbar > span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    font-weight: var(--font-weight-medium);
}
.code-language {
    font-size: 9px;
    letter-spacing: 0.6px;
    font-weight: 400;
    color: var(--neutral-60);
}
.copy-code {
    flex-shrink: 0;
}
.code-example pre {
    margin: 0;
    max-height: 620px;
    overflow: auto;
    padding: 20px;
    font-size: 12px;
    line-height: 1.85;
    tab-size: 2;
}
.code-example pre code {
    font-size: inherit;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    white-space: pre;
    overflow-wrap: normal;
}
.docs-caption {
    font-size: 12px;
    line-height: 1.65;
    color: var(--docs-muted);
}
.docs-note {
    margin: 22px 0;
    color: var(--docs-muted);
    font-size: 13px;
}
.docs-note > strong:first-child {
    color: inherit;
}
.docs-note p:first-child {
    margin-top: 0;
}
.docs-note p:last-child {
    margin-bottom: 0;
}
.setup-steps {
    list-style: none;
    counter-reset: setup;
    padding-left: 0 !important;
}
.setup-steps > li {
    counter-increment: setup;
    padding-left: 42px;
    position: relative;
    margin-top: 32px;
}
.setup-steps > li::before {
    content: counter(setup);
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid var(--blue-border);
    background: var(--blue-surface);
    color: var(--blue);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.setup-steps h3 {
    margin-top: 0;
}
.docs-section details {
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: white;
}
.docs-section details > summary {
    cursor: pointer;
    padding: 14px 17px;
    color: var(--neutral-80);
    font-weight: var(--font-weight-medium);
    font-size: 13px;
}
.docs-section details[open] > summary {
    border-bottom: 1px solid var(--line);
}
.docs-section details > :not(summary) {
    margin-left: 17px;
    margin-right: 17px;
}
.docs-section details > :last-child {
    margin-bottom: 18px;
}
.docs-section details .docs-note {
    font-size: 12px;
}
.table-scroll {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}
.docs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 12px;
    line-height: 1.7;
}
.docs-table td,
.docs-table th {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.docs-table th {
    background: var(--neutral-20);
    color: var(--neutral-70);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.docs-table tr:last-child td {
    border-bottom: 0;
}
.docs-table td:first-child {
    min-width: 140px;
}
.docs-table code {
    font-size: 11px;
}
.production-list {
    display: grid;
    gap: 8px;
}
.docs-back-top {
    display: inline-block;
    margin-top: 22px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
}
.reference-tools {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin: 25px 0 12px;
}
.endpoint-search {
    display: grid;
    gap: 12px;
    flex: 1;
    font-size: var(--font-size-body-medium);
    font-weight: var(--font-weight-medium);
    min-width: 0;
}
.endpoint-search input {
    min-width: 0;
}
.endpoint-group {
    margin-top: 30px;
    scroll-margin-top: 110px;
}
.docs-section .endpoint {
    margin: 9px 0;
    scroll-margin-top: 110px;
}
.docs-section .endpoint > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    list-style: none;
}
.docs-section .endpoint > summary::-webkit-details-marker {
    display: none;
}
.endpoint > summary > code {
    font-size: 12px;
    color: var(--neutral-80);
}
.endpoint > summary:hover {
    background: var(--neutral-20);
}
.http-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: normal;
    width: 50px;
    flex: 0 0 50px;
    border: 1px solid var(--blue-border);
    padding: 3px 4px;
    border-radius: 5px;
    color: var(--blue-pressed);
    background: var(--blue-surface);
    font:
        600 10px/1.5 ui-monospace,
        monospace;
}
.method-post {
    color: var(--success-pressed);
    background: var(--success-surface);
    border-color: var(--success-border);
}
.method-put,
.method-patch {
    color: var(--warning-pressed);
    background: var(--warning-surface);
    border-color: var(--warning-border);
}
.method-delete {
    color: var(--error-pressed);
    background: var(--error-surface);
    border-color: var(--error-border);
}
.endpoint-toggle {
    margin-left: auto;
    color: var(--docs-muted);
    font-size: 18px;
}
.endpoint[open] > summary .endpoint-toggle {
    transform: rotate(45deg);
}
.endpoint-body {
    padding: 0 2px;
    min-width: 0;
}
.endpoint-access {
    color: var(--docs-muted);
    font-size: 12px;
}
.endpoint-access code {
    margin-left: 7px;
}
.response-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.response-codes span {
    padding: 2px 8px;
    border: 1px solid var(--neutral-30);
    border-radius: 5px;
    background: var(--neutral-20);
    font:
        11px/1.8 ui-monospace,
        monospace;
    color: var(--neutral-70);
}
.response-codes .response-success {
    color: var(--success-pressed);
    background: var(--success-surface);
    border-color: var(--success-border);
}
.docs-section .schema-details {
    border: 0;
    border-radius: 0;
}
.docs-section .schema-details > summary {
    padding: 9px 0;
    font-size: 12px;
}
.docs-section .schema-details > :not(summary) {
    margin-left: 0;
    margin-right: 0;
}
.docs-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 12px);
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    border-radius: 9px;
    background: var(--neutral-90);
    box-shadow: 0 4px 24px #101c2c22;
    color: white;
    font-size: 12px;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.15s,
        transform 0.15s;
}
.docs-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.developer-page > footer {
    padding: 28px max(28px, calc((100vw - 1296px) / 2));
    border-top: 1px solid var(--line);
    color: var(--docs-muted);
    background: var(--neutral-20);
    font-size: 12px;
}
@media (max-width: 1100px) {
    .docs-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 34px;
    }
    .api-flow {
        gap: 10px;
        padding: 18px;
    }
    .api-flow code {
        font-size: 11px;
    }
    .docs-hero h1 {
        font-size: 37px;
    }
}
@media (max-width: 800px) {
    .developer-page > nav {
        position: relative;
        padding: 18px 22px;
        min-height: 72px;
        flex-wrap: wrap;
        gap: 16px;
    }
    .developer-page .brand {
        font-size: 19px;
    }
    .developer-page > nav > div {
        gap: 20px;
    }
    .developer-page > nav > div > a {
        font-size: 12px;
    }
    .docs-layout {
        display: block;
        padding: 24px 22px 60px;
    }
    .docs-sidebar {
        position: static;
        overflow: visible;
        max-height: none;
        margin-bottom: 32px;
        padding: 0;
    }
    .sidebar-label {
        margin: 0 0 13px;
        font-size: 9px;
    }
    .docs-nav {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
    }
    .docs-nav a {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 12px;
    }
    .docs-nav a[aria-current] {
        box-shadow: none;
    }
    .sidebar-download,
    .sidebar-footnote {
        display: none;
    }
    .docs-hero,
    .docs-section,
    .docs-section .endpoint {
        scroll-margin-top: 24px;
    }
    .docs-eyebrow {
        font-size: 8px;
        gap: 9px;
        letter-spacing: 0.8px;
    }
    .docs-hero h1 {
        font-size: var(--font-size-h4);
        letter-spacing: -1.35px;
    }
    .docs-lead {
        font-size: 14px;
    }
    .docs-hero-actions {
        gap: 9px;
        margin: 23px 0;
    }
    .docs-section {
        margin-top: 48px;
        padding-top: 35px;
    }
    .docs-section h2 {
        font-size: var(--font-size-h5);
    }
    .reference-tools {
        flex-wrap: wrap;
        align-items: stretch;
    }
    .endpoint-search {
        flex-basis: 100%;
    }
}
@media (max-width: 520px) {
    .developer-page {
        font-size: 13px;
    }
    .developer-page > nav {
        display: grid;
        gap: 12px;
    }
    .developer-page > nav > div {
        justify-content: space-between;
    }
    .docs-hero h1 {
        font-size: 31px;
    }
    .docs-hero h1 br {
        display: none;
    }
    .api-flow {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 20px;
    }
    .api-flow > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .api-flow .flow-arrow {
        display: none;
    }
    .api-flow > div + .flow-arrow + div {
        border-top: 1px solid var(--line);
        padding-top: 13px;
    }
    .api-flow code {
        font-size: 12px;
    }
    .code-toolbar {
        padding: 10px 12px;
        font-size: 10px;
    }
    .code-example pre {
        padding: 14px;
        font-size: 11px;
        max-height: 450px;
    }
    .setup-steps > li {
        padding-left: 0;
        padding-top: 37px;
    }
    .setup-steps > li::before {
        top: 0;
    }
    .docs-section details > summary {
        padding: 13px;
    }
    .docs-section details > :not(summary) {
        margin-left: 12px;
        margin-right: 12px;
    }
    .docs-table td,
    .docs-table th {
        padding: 11px;
    }
    .docs-table td:first-child {
        min-width: 120px;
    }
    .docs-note {
        font-size: 12px;
    }
    .docs-section .endpoint > summary {
        padding: 12px;
        gap: 9px;
    }
    .endpoint > summary > code {
        font-size: 10px;
    }
    .endpoint .http-method {
        width: 43px;
        flex-basis: 43px;
        font-size: 9px;
    }
    .docs-section .schema-details > summary {
        padding-left: 0;
        padding-right: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .docs-toast {
        transition: none;
    }
}

.back-top-icon {
    transform: rotate(-90deg);
}
