:root {
    color-scheme: dark;
    --bsos-black: #000000;
    --bsos-surface: #090909;
    --bsos-panel: #101010;
    --bsos-orange: #ff7900;
    --bsos-white: #ffffff;
    --bsos-muted: #b9b9bd;
    --bsos-border: #292929;
    --bsos-radius: 8px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

html {
    background: var(--bsos-black);
}

body {
    background: var(--bsos-black);
    color: var(--bsos-white);
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--bsos-orange);
    font-weight: 650;
    letter-spacing: -.35px;
}

h1 {
    font-size: clamp(27px, 3vw, 38px);
}

h2 {
    font-size: clamp(21px, 2.4vw, 27px);
}

h3 {
    font-size: 17px;
}

p {
    color: var(--bsos-muted);
}

a {
    color: var(--bsos-orange);
}

header, .header, .topbar {
    background: #080808;
    border-bottom: 1px solid var(--bsos-border);
}

.card, .installation {
    background: var(--bsos-panel);
    border: 1px solid var(--bsos-border);
    border-radius: var(--bsos-radius);
    box-shadow: none;
}

.card {
    padding: 19px;
    margin-bottom: 0;
}

.card:hover {
    border-color: #694019;
}

button, .button, .primary {
    background: var(--bsos-orange);
    border: 1px solid var(--bsos-orange);
    color: #000;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 15px;
}

button.secondary, .button.secondary, .secondary {
    background: #101010;
    color: var(--bsos-white);
    border: 1px solid #383838;
}

button:hover, .button:hover {
    filter: brightness(1.12);
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

input, select, textarea {
    background: #050505;
    color: var(--bsos-white);
    border: 1px solid #353535;
    border-radius: 6px;
    font: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--bsos-orange);
    outline-offset: 2px;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--bsos-white);
    outline-offset: 3px;
}

pre {
    background: #050505;
    border: 1px solid var(--bsos-border);
    color: #e6e6e6;
    border-radius: 6px;
}

.eyebrow {
    color: var(--bsos-orange);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.badge, .tag {
    border-radius: 4px;
    font-size: 11px;
}

footer {
    background: #050505;
    border-top: 1px solid var(--bsos-border);
}

[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .card {
        padding: 15px;
    }
}


/* BSOS_UNIFIED_CUSTOMER_JOURNEY */

.bsos-journey {
    margin: 24px 0;
}

.bsos-journey-header {
    margin-bottom: 18px;
}

.bsos-journey-header h2 {
    margin-bottom: 8px;
}

.bsos-journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.bsos-journey-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 125, 35, .28);
    border-radius: 10px;
    background: rgba(255, 125, 35, .035);
    min-width: 0;
}

.bsos-journey-card h3,
.bsos-journey-card p {
    margin: 0;
}

.bsos-journey-card p {
    flex: 1;
    line-height: 1.6;
}

.bsos-journey-label {
    color: #ff812c;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
}

.bsos-journey-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bsos-journey-panel {
    padding: 16px;
    margin: 12px 0 20px;
    border-left: 3px solid #ff812c;
    background: rgba(255, 125, 35, .045);
}

.bsos-journey-panel h3 {
    margin-top: 0;
}

.bsos-toolkit-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin: 12px 0;
    border-bottom: 1px solid rgba(255, 125, 35, .25);
}

.bsos-toolkit-navigation a {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 125, 35, .28);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

.bsos-toolkit-navigation a:hover,
.bsos-toolkit-navigation a:focus-visible {
    border-color: #ff812c;
    color: #ff812c;
}

.bsos-toolkit-guidance {
    line-height: 1.6;
    margin-bottom: 20px;
}

[id^="bsos-"] {
    scroll-margin-top: 24px;
}

@media (max-width: 600px) {
    .bsos-journey-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsos-journey-footer {
        flex-direction: column;
        align-items: stretch;
    }
}


/* BSOS_CUSTOMER_RELEASE_REFINEMENT */

.bsos-connection-summary {
    padding: 18px;
    margin: 14px 0;
    border: 1px solid #353535;
    border-radius: 8px;
    background: #101010;
}

.bsos-connection-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bsos-connection-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.bsos-status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 600;
}

.bsos-status-badge.verified {
    color: #8ce4aa;
    background: #14271c;
    border: 1px solid #326445;
}

.bsos-status-badge.pending {
    color: #ffbf80;
    background: #2b2016;
    border: 1px solid #704a2b;
}

.bsos-connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.bsos-connection-grid dt {
    font-size: .78rem;
    color: #aaa;
}

.bsos-connection-grid dd {
    margin: 5px 0 0;
    color: #fff;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.bsos-connection-note {
    margin: 0;
    font-size: .85rem;
    color: #bbb;
}

.bsos-technical-details {
    margin: 12px 0 20px;
}

.bsos-technical-details summary {
    cursor: pointer;
    font-size: .85rem;
    color: #aaa;
}

.bsos-technical-details pre {
    max-height: 280px;
    overflow: auto;
}

.bsos-journey-card {
    padding: 16px;
    gap: 8px;
}

.bsos-journey-card h3 {
    font-size: 1rem;
}

.bsos-journey-card p {
    font-size: .85rem;
    line-height: 1.5;
}


/* BSOS_FINAL_RESOURCE_PRESENTATION */

#distribution-resources {
    display: grid;
    grid-template-columns: repeat(
        auto-fit, minmax(min(100%, 240px), 1fr)
    );
    gap: 12px;
}

.bsos-resource-card {
    min-width: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.bsos-resource-card h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
}

.bsos-resource-card p {
    font-size: .8rem;
    overflow-wrap: anywhere;
    margin: 0;
}

.bsos-resource-card button {
    margin-top: auto;
}

.bsos-resource-integrity {
    width: 100%;
    min-width: 0;
    font-size: .75rem;
    color: #aaa;
}

.bsos-resource-integrity summary,
.bsos-documentation-section summary {
    cursor: pointer;
}

.bsos-resource-integrity pre {
    font-size: .72rem;
    overflow-wrap: anywhere;
}

#api-documentation-results {
    display: grid;
    gap: 8px;
}

#api-documentation-results > details {
    padding: 12px;
    min-width: 0;
}

#api-documentation-results > details > summary {
    font-size: .85rem;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.bsos-documentation-section {
    margin: 8px 0;
    padding: 8px;
    border: 1px solid #353535;
    border-radius: 5px;
}

.bsos-documentation-section pre {
    max-height: 340px;
    overflow: auto;
    font-size: .78rem;
}

.bsos-documentation-section summary {
    color: #ffb16b;
    font-size: .85rem;
}
