:root {
    --gbdLogoBlue: hsl(204, 100%, 36%);
    --gbdBlue: #0086c9;
    --gbdBlueDark: #006fb8;
    --gbdBlueLight: #4d9ccd;
    --gbdBlueTint: #eef5fa;
    --gbdGreen: #84ac2b;
    --gbdText: #262626;
    --gbdTextMuted: #5c5b56;
    --gbdTextFaint: #8c8b86;
    --gbdPageBg: #f4f4f3;
    --gbdBorder: #d5d5d2;
    --gbdFooterBg: #f0f0ef;
    --gbdRadius: .35rem;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    background: var(--gbdPageBg);
    color: var(--gbdText);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --topbar-height: 56px;
    --side-width: 20em;
}

a {
    color: var(--gbdBlue);
    text-decoration: none;
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 0 1em;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    z-index: 10;
}

#topbar-brand {
    display: flex;
    align-items: center;
    gap: .6em;
    min-width: 0;
    color: var(--gbdBlue);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .01em;
    white-space: nowrap;
}

#topbar-brand > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

#topbar-brand img {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

#topbar-tools {
    display: flex;
    align-items: center;
    gap: .25em;
    flex: 0 0 auto;
}

.button, .toolbar-button {
    display: inline-block;
}

.toolbar-button {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    height: 36px;
    min-width: 36px;
    padding: 0 6px;
    justify-content: center;
    border-radius: var(--gbdRadius);
    color: var(--gbdTextMuted);
    transition: all 140ms ease-out;
}

.toolbar-button .icon {
    width: 24px;
    height: 24px;
}

.toolbar-button:hover,
.toolbar-button:focus-visible {
    color: var(--gbdBlue);
    background: var(--gbdBlueTint);
    outline: 0;
}

.with-mobile-view #button-mobile-view {
    color: #fff;
    background: var(--gbdBlue);
}

#user-menu {
    position: relative;
    margin-left: .5em;
    padding-left: .75em;
    border-left: 1px solid var(--gbdBorder);
}

.with-user #button-login {
    color: var(--gbdBlue);
}

#user-name {
    font-weight: 700;
    max-width: 12em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + .4em);
    right: 0;
    min-width: 10em;
    padding: .5em 0;
    background: #fff;
    border-radius: .46em;
    box-shadow: 0 .6em 1.7em rgba(0, 30, 49, .4);
}

.with-user-dropdown #user-dropdown {
    display: block;
}

#user-dropdown button {
    display: block;
    width: 100%;
    padding: .7em 1.5em;
    border: 0;
    background: none;
    color: var(--gbdLogoBlue);
    font-size: 1em;
    text-align: left;
    cursor: pointer;
}

#user-dropdown button:hover,
#user-dropdown button:focus-visible {
    color: #fff;
    background: var(--gbdBlueLight);
    outline: 0;
}

#main {
    position: fixed;
    left: 0;
    top: var(--topbar-height);
    bottom: 0;
    right: var(--side-width);
    padding: 1em;
}

#main:has(#demo-intro) {
    display: flex;
    overflow: auto;
}

#main iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    border-radius: var(--gbdRadius);
    box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
}

.with-mobile-view #main iframe {
    width: 400px;
    max-width: 100%;
}

#intro {
    display: none;
}

#demo-intro {
    margin: auto;
    max-width: 34em;
    padding: 2.5em 3em;
    background: #fff;
    border-radius: var(--gbdRadius);
    box-shadow: 6px -15px 30px rgba(0, 55, 90, .25);
    font-size: clamp(1.125rem, calc(0.6vw + 1rem), 1.5rem);
}

#demo-intro p {
    line-height: 1.4;
    margin: 1em 0;
}

#demo-intro p:first-child {
    margin-top: 0;
}

#demo-intro p:last-child {
    margin-bottom: 0;
}

#demo-intro .icon {
    width: 1em;
    height: 1em;
    color: var(--gbdBlue);
    vertical-align: middle;
}

#side {
    position: fixed;
    width: var(--side-width);
    top: var(--topbar-height);
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, .06);
}

#side-search {
    padding: 1em;
}

#side-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--gbdBorder);
    border-radius: var(--gbdRadius);
    padding: 0 .5em;
    transition: border-color 140ms ease-out;
}

#side-search-form:focus-within {
    border-color: var(--gbdBlue);
}

#side-search-form .icon {
    width: 16px;
    height: 16px;
    color: var(--gbdTextFaint);
}

#side-search input {
    background: transparent;
    border: none;
    outline: 0;
    color: var(--gbdText);
    font-size: 1em;
    padding: .6em .3em;
    flex: 1;
    min-width: 0;
}

#project-list {
    flex: 1;
    overflow: auto;
    position: relative;
    padding: 0 1em 1em;
    scrollbar-width: thin;
}

.project-list-entry {
    position: relative;
    margin-bottom: .5em;
    padding: .8em .8em .6em .8em;
    border-radius: var(--gbdRadius);
    background-color: var(--gbdPageBg);
    transition: background-color 140ms ease-out;
}

.project-list-entry:hover {
    background-color: var(--gbdBlueTint);
}

.project-list-entry.hidden {
    display: none;
}

.project-list-entry h3 {
    padding: 0 1.8em .5em 0;
}

.project-list-entry h3 a {
    font-size: 1em;
    line-height: 1.25;
    font-weight: 700;
    color: var(--gbdBlue);
}

.project-list-entry a.button {
    position: absolute;
    right: .8em;
    top: .8em;
    color: var(--gbdTextFaint);
}

.project-list-entry a.button:hover {
    color: var(--gbdBlue);
}

.project-list-entry.selected {
    background-color: var(--gbdBlue);
}

.project-list-entry.selected h3 a,
.project-list-entry.selected a.button {
    color: #fff;
}

.project-list-entry a.frame-link {
    flex: 1
}

#project-details {
    position: fixed;
    left: 20em;
    top: 0;
    bottom: 0;
    width: 20em;
    padding: 2em;
    overflow: auto;
}

.project-details-entry.hidden {
    display: none;
}

.project-details-entry h2 {
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1.2;
}

.project-details-entry p {
    line-height: 1.4;
    margin: 1em 0;
}

.project-details-entry a {
    color: white;
}

.project-details-entry h6 {
    font-size: 0.8em;
    margin: 4em 0 0 0;
    text-align: right;
}
.project-details-entry h6 a {
    color: #76fc02;
}

.project-details-entry ul {
    padding-left: 2em;
}

.project-details-entry pre {
    margin: 2em 0;
}


pre, code {
    font-family: "JetBrains Mono", Monaco, monospace;
    background-color: #222;
    color: #76fc02;
    font-size: 12px;

}

p > code {
    padding: 2px 7px;
    white-space: nowrap;
    border-radius: 7px;
}

pre {
    padding: 1em;
    border-radius: 7px;
    width: 100%;
    overflow: auto;
}


mark {
    padding: 2px 8px;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 11px;
    color: var(--gbdBlueDark);
    background: #fff;
    display: inline-block;
    margin: 0 .2em .3em 0;
    cursor: pointer;
    transition: all 140ms ease-out;
}

mark:hover {
    background: var(--gbdBlueTint);
}

.project-list-entry.selected mark {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

mark.selected,
.project-list-entry.selected mark.selected {
    color: #fff;
    background: var(--gbdGreen);
}

#login-popup,
#config-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: 1em;
    background: rgba(0, 30, 49, .5);
}

.with-login-popup #login-popup,
.with-config-popup #config-popup {
    display: flex;
}

#config-box {
    position: relative;
    width: 60em;
    max-width: 100%;
    height: 60em;
    max-height: 100%;
    background: #fff;
    border-radius: var(--gbdRadius);
    box-shadow: 0 .6em 1.7em rgba(0, 30, 49, .4);
    overflow: hidden;
}

#config-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#button-config-close {
    position: absolute;
    top: 1.2em;
    right: 1.4em;
    color: var(--gbdTextFaint);
}

#button-config-close .icon {
    width: 20px;
    height: 20px;
}

#button-config-close:hover {
    color: var(--gbdBlue);
}

#login-box {
    position: relative;
    width: 26em;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    padding: 2em;
    background: #fff;
    border-radius: var(--gbdRadius);
    box-shadow: 0 .6em 1.7em rgba(0, 30, 49, .4);
}

#login-box h2 {
    color: var(--gbdBlue);
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: .8em;
}

#button-login-close {
    position: absolute;
    top: 1em;
    right: 1em;
    color: var(--gbdTextFaint);
}

#button-login-close:hover {
    color: var(--gbdBlue);
}

#login-box label {
    display: block;
    font-weight: 700;
    margin-bottom: .3em;
}

#login-box input {
    display: block;
    width: 100%;
    margin-bottom: 1em;
    padding: .6em .7em;
    font-size: 1em;
    color: var(--gbdText);
    border: 1px solid var(--gbdBorder);
    border-radius: var(--gbdRadius);
    outline: 0;
}

#login-box input:focus {
    border-color: var(--gbdBlue);
}

#login-box button {
    padding: .7em 1.4em;
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    background: var(--gbdBlue);
    border: 0;
    border-radius: var(--gbdRadius);
    box-shadow: 0 8px 24px rgba(0, 93, 151, .35);
    cursor: pointer;
}

#login-box button:hover {
    background: var(--gbdBlueDark);
}

.login-hint {
    margin: 2em 0 .8em;
    padding-top: 1.5em;
    border-top: 1px solid var(--gbdBorder);
    color: var(--gbdTextMuted);
    line-height: 1.4;
}

.login-credentials {
    width: 100%;
    border-collapse: collapse;
}

.login-credentials th,
.login-credentials td {
    padding: .35em .6em;
    text-align: left;
    border-bottom: 1px solid var(--gbdBorder);
}

.login-credentials th {
    color: var(--gbdTextFaint);
    font-size: .8em;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.login-credentials td {
    font-family: "JetBrains Mono", Monaco, monospace;
    font-size: .9em;
}

#login-status {
    position: relative;
    height: 40px;
    margin-bottom: .5em;
}

#login-error,
#login-wait {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    visibility: hidden;
}

#login-error {
    color: #c62828;
}

#login-wait {
    background: url('/demos/ajax.gif') left center no-repeat;
}

.gws-home-login-error #login-error,
.gws-home-login-progress #login-wait {
    visibility: visible;
}

.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.icon.open_in_new {
    --icon: url('/demos/icons/open_in_new.svg')
}
.icon.menu {
    --icon: url('/demos/icons/menu.svg')
}
.icon.close {
    --icon: url('/demos/icons/close.svg')
}
.icon.home {
    --icon: url('/demos/icons/home.svg')
}
.icon.arrow_circle_down {
    --icon: url('/demos/icons/arrow_circle_down.svg')
}
.icon.arrow_circle_up {
    --icon: url('/demos/icons/arrow_circle_up.svg')
}
.icon.smartphone {
    --icon: url('/demos/icons/smartphone.svg')
}
.icon.person {
    --icon: url('/demos/icons/person.svg')
}

@media (max-width: 768px) {
    body {
        --side-width: 0;
    }
    #main {
        bottom: 45%;
        padding: .5em;
    }
    #side {
        top: 55%;
        width: 100%;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
    }
    #topbar {
        padding: 0 .5em;
    }
    #user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    #topbar-brand > span {
        display: none;
    }
}

body.frontpage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    color: var(--gbdText);
    background: var(--gbdPageBg);
    font-size: clamp(1rem, calc(0.2vw + 1rem), 1.125rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.38;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.frontpage .page-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 min(6.5vw, 48px);
}

.frontpage .page-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 10;
}

.frontpage .page-header .page-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
}

.frontpage a.brand {
    display: flex;
    align-items: center;
    gap: .6em;
    color: var(--gbdText);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .01em;
}

.frontpage a.brand::before {
    display: none;
}

.frontpage a.brand img {
    width: 36px;
    height: 36px;
}

.frontpage .badge {
    font-size: .75rem;
    color: var(--gbdBlueDark);
    background: var(--gbdBlueTint);
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}

.frontpage .page-main {
    flex: 1 1 auto;
    padding: min(5em, 10vw) 0;
}

.frontpage .content {
    background: #fff;
    border-radius: var(--gbdRadius);
    box-shadow: 6px -15px 30px rgba(0, 55, 90, .25);
    padding: min(5em, 10vw) min(6.5vw, 100px);
}

.frontpage .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2em min(64px, 6vw);
}

.frontpage .cards section {
    flex: 1 1 18em;
}

.frontpage h1,
.frontpage h2 {
    color: var(--gbdBlue);
    font-weight: 700;
    text-wrap: balance;
}

.frontpage h1 {
    font-size: clamp(1.75rem, calc(2.9vw + 0.6rem), 3rem);
    line-height: 1.167;
    margin-bottom: 1em;
}

.frontpage h2 {
    display: inline-block;
    font-size: clamp(1.25rem, calc(0.4vw + 1.2rem), 1.5rem);
    line-height: 1.2;
    margin-bottom: 1em;
    padding-bottom: .35em;
    border-bottom: 3px solid var(--gbdGreen);
}

.frontpage p {
    margin-bottom: 1em;
}

.frontpage a {
    color: var(--gbdBlue);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: all 140ms ease-out
}

.frontpage a::before {
    content: "";
    background: rgba(0, 134, 201, .3);
    display: block;
    position: absolute;
    z-index: -1;
    top: -1px;
    left: -5px;
    right: -5px;
    bottom: -3px;
    opacity: 0;
    transform: scale(0.8);
    border-radius: .2em;
    box-shadow: 0 4px 15px rgba(0, 93, 151, .2);
    transition: all 300ms cubic-bezier(0.57, 1.77, 0.55, 1)
}

.frontpage a:hover,
.frontpage a:active,
.frontpage a:focus-visible {
    outline: 0
}

.frontpage a:hover::before,
.frontpage a:focus-visible::before {
    opacity: 1;
    transform: scale(1)
}

.frontpage a:focus-visible {
    outline: 2px solid var(--gbdLogoBlue);
    outline-offset: .3em;
    border-radius: .1em
}

.frontpage ul {
    list-style-type: none;
    margin-bottom: 1.38em
}

.frontpage ul:last-child {
    margin-bottom: 0
}

.frontpage li {
    position: relative;
    letter-spacing: .01em;
    padding: 0 0 .6em 2.3em;
    break-inside: avoid;
    page-break-inside: avoid;
}

.frontpage li::before {
    content: "";
    background-color: transparent;
    background-image: url("/demos/bullet.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    width: 1.4em;
    height: 1.4em;
    position: absolute;
    top: 0;
    left: .1em
}

.frontpage .page-footer {
    background: var(--gbdFooterBg);
    color: var(--gbdTextFaint);
    font-size: .875rem;
}

.frontpage .page-footer .page-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5em 2em;
    padding-top: 1.2em;
    padding-bottom: 1.2em;
}

.frontpage .page-footer a {
    color: var(--gbdTextFaint);
}

@media (max-width: 640px) {
    .frontpage .content {
        padding: 2em 1.4em;
    }
}
