@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --brandcolor: #d7d7d7;
    --white: #fff;
    --gray-lightest: #f5f5f5;
    --gray-light: #eaeaea;
    --gray-dark: #bcbcbc;
    --gray-darkest: #767676;
    --black: #3d3d3d;
    --light: 300;
    --regular: 400;
    --medium: 500;
    --semibold: 600;
    --bold: 700;
    --font: 'Mulish', sans-serif;
}

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    height: 100%;
}


body.ds-body {
    font-family: var(--font);
    color: var(--black);
    font-size: 14px;
    background: white;
    overflow: hidden;
    counter-reset: cards;
    position: relative;
}

.ds-page-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "aside main";
    position: relative;
    height: 100svh;
    width: 100vw;
}

.background-gray {
    background: var(--gray-lightest);
}

.background-dark {
    background: var(--gray-darkest);
}

.ds-page-aside {
    height: 100svh;
    background: var(--black);
    display: flex;
    grid-area: aside;
}

.ds-page-aside .ds-section {
    height: 100%;
    border-right: 1px solid var(--gray-darkest);
}

.ds-page-aside .ds-section-main {
    text-align:center;
    padding: 30px 10px;
}

.ds-page-aside .ds-section-main .ds-main-nav ul {
    display: flex;
    flex-direction: column;
    gap:16px;
}

.ds-page-aside .ds-section-main a {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap:4px;
}

.ds-page-aside .ds-section-sub {
    width: 200px;
    padding: 30px 20px;
    overflow: auto;
}

.ds-page-aside .ds-section-sub-components {
    display:none;
}

.ds-page-aside .ds-section-sub .ds-heading4 {
    margin-left:6px;
}

.ds-page-aside select {
    color: var(--gray-light);
    position: sticky;
    top:10px;
    font-family: inherit;
    background: var(--black);
    border: 1px solid var(--gray-darkest);
    font-size: 13px;
    font-weight: var(--semibold);
    padding: 0 10px;
    height: 32px;
    width: 100%;
    border-radius: 8px;
    background-image:
    linear-gradient(45deg, transparent 50%, var(--gray-dark) 50%),
    linear-gradient(135deg, var(--gray-dark) 50%, transparent 50%);
    background-position:
    calc(100% - 20px) calc(1em + 1px),
    calc(100% - 15px) calc(1em + 1px),
    100% 0;
    background-size:
    6px 6px,
    6px 6px,
    2.0em 2.0em;
    background-repeat: no-repeat;
    margin-bottom: 40px;
}

.ds-theme-toggle {
    position: fixed;
    right: 30px;
    top:30px;
    z-index: 999;
}

.ds-theme-toggle select {
    color: var(--black);
    font-family: inherit;
    background: var(--white);
    border: 3px solid var(--gray-light);
    font-size: 16px;
    font-weight: var(--bold);
    padding: 14px 30px;
    padding-right: 36px;
    width: 100%;
    border-radius: 200px;
    background-image:
    linear-gradient(45deg, transparent 50%, var(--gray-darkest) 50%),
    linear-gradient(135deg, var(--gray-darkest) 50%, transparent 50%);
    background-position:
    calc(100% - 20px) calc(1em + 6px),
    calc(100% - 15px) calc(1em + 6px),
    100% 0;
    background-size:
    6px 6px,
    6px 6px,
    2.0em 2.0em;
    background-repeat: no-repeat;
}

.ds-theme-toggle select:hover {
    border: 3px solid var(--gray-dark);
}

.ds-page-aside .ds-section.ds-scroll {
    overflow: auto;
    height: 100%;
    padding-bottom: 100px;
}

.ds-page-aside nav ul {
    margin-bottom: 20px;
}

.ds-page-aside nav ul ul li {
    padding-left:10px;
}

.ds-page-aside nav a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: var(--regular);
    font-size: 14px;
    padding: 5px;
    border-radius: 8px;
    display: inline-block;
}

.ds-page-aside nav a:hover,
.ds-page-aside nav a.active {
    color: var(--white);
    background: #4b4b4b;
}

.ds-page-main {
    min-height: 100%;
    padding: 60px 40px;
    overflow: scroll;
    grid-area: main;

}

.ds-page-main-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ds-page-main-inner-small {
    max-width: 860px;
}

.ds-section {
    margin-bottom: 60px;
}


.ds-display,
.ds-heading1,
.ds-heading2,
.ds-heading3,
.ds-heading4,
.ds-heading5 {
    font-family: var(--font);
    font-size: 34px;
    font-weight: var(--semibold);
    line-height: 1.4;
    margin-bottom: 20px;
}

.ds-display1 {
    font-size: 70px;
    font-weight: var(--medium);
}

.ds-display2 {
    font-size: 54px;
    font-weight: var(--medium);
}

.ds-heading2 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: var(--bold);
}

.ds-heading3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: var(--semibold);
}

.ds-heading4 {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: var(--semibold);
}

.ds-heading5 {
    font-size: 12px;
    margin-bottom: 4px;
}

.ds-page-aside .ds-heading4,
.ds-page-aside .ds-heading5 {
    color: var(--gray-dark);
    text-transform: uppercase;
}

.ds-paragraph,
.ds-bullet-list {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.4;
    display: block;
}

.ds-bullet-list {
    list-style-position: outside;
    margin-left: 18px;

}

.ds-bullet-list .ds-bullet-list {
    margin-top: 8px;
}

.ds-hero {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    min-height: 310px;
}

.ds-hero-large {
    height: 500px;
}

.ds-hero > * {
    color: var(--black);
    font-weight: var(--medium);
}

.ds-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.ds-align-start {
    align-items: flex-start;
}

.ds-align-end {
    align-items: flex-end;
}

.ds-text-center {
    text-align:center;
}

.ds-text-regular {
    font-weight: var(--regular);
}

.ds-display-none {
    display: none !important;
}

.ds-table {
    width: 100%;
    border-spacing: 0;
    border-top: 1px solid var(--gray-lightest);
    border-left: 1px solid var(--gray-lightest);
}

.ds-table td {
    border-bottom: 1px solid var(--gray-lightest);
    border-right: 1px solid var(--gray-lightest);
    padding: 10px 20px;
}

.ds-table td:first-of-type {
    text-align: center;
    width: 80px;
    line-height: 0;
}

.ds-divider {
    border: 0;
    border-top: 1px solid var(--gray-light);
    margin: 20px 0;
}

.ds-component-docs {
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.ds-component-docs-content {
    display: none;
    min-height: 50px;
    line-height: 20px;
}

.ds-component-docs ul {
    display: flex;
    gap: 30px;
    margin-bottom: -12px;
    list-style: none !important;
}

.ds-component-docs>.ds-component-docs-content {
    margin-top: 20px;
}


.ds-component-docs ul li .nav-item {
    font-size: 14px;
    font-weight: var(--bold);
    font-family: var(--font);
    display: flex;
    gap: 2px;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    line-height: 20px;
}

.ds-component-docs ul li .nav-item:hover,
.ds-component-docs ul li .nav-item:hover:before {
    color: var(--black);
}

.ds-component-docs ul li .nav-item:before {
    content: '\25BA';
    font-size: 10px;
    color: var(--gray-darkest);
    width: 10px;
}

.ds-component-docs ul li .active-item {
    color: var(--black);
}

.ds-component-docs ul li .active-item:before {
    content: '\25BC';
    color: var(--black)
}

.ds-component-container {
    margin: 10px 0 40px;
}

.ds-component-container .ds-component {
    border-radius: 8px 8px 0 0;
    margin-bottom:0;
}

.ds-component {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
    align-items: center;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    margin-bottom:12px;
    font-size: initial;
}

.ds-card-container-fluid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 0 auto;
}

.ds-card-container-fluid .ds-card-item {
    min-height: 200px;
    padding: 30px;
    color: var(--black);
    text-decoration: none;
    border:1px solid var(--gray-light);
    border-radius: 20px;
    position: relative;
}

.ds-card-container-fixed {
    grid-template-columns: 1fr repeat(4, 8fr) 1fr;
    display: grid;
    gap:40px;
}

.ds-card-container-fixed:has(div.ds-card-item) {
    grid-template-rows: masonry;
}

.ds-card-container-fixed div.ds-card-item {
    color: var(--black);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    position: relative;
}

div.ds-card-item::before {
    counter-increment: cards;
    content: ""counter(cards)"";
    position: absolute;
    top: 10px;
    left:20px;
    font-size: 60px;
    font-weight: var(--semibold);
    color: var(--gray-dark);
    opacity: 0.4;
    z-index: 0;
} 

.ds-card-container-fixed a.ds-card-item {
    color: var(--black);
    text-decoration: none;
    border:1px solid var(--gray-light);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.ds-card-item .card-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

div.ds-card-item .card-content {
    margin-left: 40px;
}

.ds-card-item .card-content .ds-paragraph:last-of-type {
    margin:0;
}

.ds-card-container-fixed .ds-card-item:nth-child(odd)  {
    grid-column: 2 / 4;
}

.ds-card-container-fixed .ds-card-item:nth-child(even)  {
    grid-column: 4 / 6;
}

.ds-card-item figure {
    background: var(--gray-lightest);
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ds-card-item figure svg {
    height: 60%;
}

.ds-card-item .cta {
    display: inline-flex;
    align-items: center;
    gap:8px;
    position: absolute;
    right: 30px;
    bottom: 30px;
    color: var(--black);
}

a.ds-card-item:hover {
    border: 1px solid var(--gray-light);
}

.code-wrap {
    line-height: 0;
}

.ds-image-container {
    border: 1px solid var(--gray-dark);
    background: var(--white);
    min-height: 200px;
    margin: 10px 0 40px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.ds-image-container img {
    object-fit: cover;
    width: 100%;
}

pre {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    tab-size: 2;
}

code {
    font-size: 14px;
    padding: 20px;
    line-height: 20px;
    border-radius: 8px;
    max-height: 400px;
    overflow: auto;
}

.ds-component+.code-wrap code {
    border-radius: 0px 0px 8px 8px;
}


@media only screen and (max-width: 900px) {

    /* .ds-body {
        margin: 0 20px;
    }

    .ds-page-aside {
        display: none;
    }

    .ds-page-main {
        margin: 0;
    } */

}

*[hidden] {
    display: none;
}