html {
    scroll-behavior: smooth;
}

body {
    flex-direction: column;
    font-size: 16px;
}

header {
    padding: 17px 0;
    background: var(--header-background-color);
}

.title-bar-container {
    background: var(--header-background-color);
}


nav.title-bar {
    color: #a3cdff;
    background: var(--header-background-color);
    max-width: 100%;
}


.hp-hero {
    background: linear-gradient(90deg, #b88ff0 30%, #85dbff 100%);
    color: white;
    padding: 40pt 0 60pt 0;
}

.hp-hero h1 {
    color: #ffffff;
    font-weight: 400;
}

.hp-hero form {
    max-width: 70vw;
    margin: 0 auto;
}


.hp-section-title {
    padding: 10pt;
    /*background: var(--section--background-color);*/
}


.hp-section-title h1 {
    display: inline-block;
    font-weight: bold;
    font-size: 28px;
    color: #003468;
}

.hp-section-title {
    white-space: nowrap;
    display: flex;
    align-items: center;

    position: relative;
    font-size: 24px;
    color: #a3cdff;
    order: 2;
    padding: 10px 40px;
}

.hp-section-title .subtle {
    font-weight: 500;
    /*color: #ffffffba;*/
    color: #909090;
}

.hp-section-title h2 {
    margin: 0;
    color: #003468;
    font-weight: 700;
}

.hp-section-title img {
    height: 48px;
    margin-right: 10pt;
}

.hp-section-title h3 {
    display: inline-block;
    font-weight: bold;
    font-size: 28px;
    color: #003468;
}


.hp-group-title {
    font-weight: 600;
    font-size: 20px;
    color: #003468;
    margin-top: 0;
    margin-bottom: 8pt
}

.main-section {
    width: var(--main--width);
    max-width: var(--main--max-width);
    padding: 0;
    margin: 15pt auto;
    display: flex;
    min-height: calc(100vh - 525px);
}

.title-bar-layout {
    align-items: center;
}

.title-bar-layout.outer-row {
    display: grid;
    grid-gap: 5pt;
    grid-template-columns: 0fr 5fr 1fr 1fr 0fr;
    margin: 0 auto;
    width: var(--main--width);
    max-width: var(--main--max-width);
}

#full-page-menu-container {
    padding: 20pt 0;
    background: #f0f0f0;
    min-height: 1200px;
}

.doc-link a {
    font-size: 12.5Z ghjtpt;
    color: #0898e0;
}

.doc-link:hover {
    text-decoration: underline;
}

.doc-link a:hover {
    color: #0898e0;
    text-decoration: none;
}

/* non madcap page */
.service-page .header-search {
    order: 4;
    display: flex;
    width: 450px;
    align-items: center;
}

.service-page .header-filler {
    order: 3;
    flex-grow: 4;
}

.container-header {
    width: var(--index--width);
    max-width: var(--index--max-width);
    padding: 0;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.hp-hero #searchform {
    width: var(--index--width);
    max-width: var(--index--max-width);
}

.hp-hero .st-search-input {
    background-color: #ffffff;
}

#full-page-menu-container .hp-section-title {
    border-radius: 8pt 8pt 0 0;
    padding: 10pt 20pt;
    margin-bottom: -15pt;
}


.header-menu-container {
    order: 5;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.tool-button {
    color: var(--header-text-color);
    background: transparent;
    border: none;
    border-radius: 200px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8pt;
}

.tool-button + .tool-button {
    margin-left: 10pt;
}

.tool-button i {
    font-size: 18pt;
}

.tool-button:hover {
    background: #ffffffd0;
    text-decoration: none;
    color: var(--section--background-color);
}


nav .middle {
    display: none;
}

.tool-button[data-toggle="offCanvas"] {
    display: none;
}

.title-bar-layout a.logo {
    border: none;
    padding: 0;
    margin: 0;
    z-index: 1;
    display: block;
    width: 260px;
    height: 65px;
    align-self: center;
    background: transparent url('/images/alloysoftware_logo.svg') no-repeat center center;
    background-size: contain;
}

.product-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-logo svg {
    width: 42px;
    height: 42px;
}


.product-logo {
    margin-right: 8pt;
}

.hp-section-title .product-logo svg {
    width: 48px;
    height: 48px;
}

.product-logo .logo-frame {
    stroke: var(--logo-color);
    fill: var(--logo-background-color);
}

.product-logo .logo-content {
    fill: var(--logo-color);
}

.product-logo.product-logo-inverted .logo-frame {
    stroke: var(--header-text-color);
    fill: var(--header-background-color);
}

.product-logo.product-logo-inverted .logo-content {
    fill: var(--header-text-color);
}

pre {
    max-width: calc(var(--main--width) - 60pt);
}

.search-wrapper {
    max-width: 350px;
    width: 50vw;
}

.sidenav-layout {
    flex-wrap: nowrap;
}

.sidenav-container {
    padding: 10pt 15pt;
}

.body-container {
    border-radius: 8px;
    padding: 10pt 30pt;
    background: white;
    flex: 1 1;
}

.body-container img {
    max-width: 100%;
}

.st-page {
    margin-bottom: 30pt;
}

div h3 {
    margin-top: 5pt;
}

.sample-questions dd {
    display: list-item;
    list-style-type: "💡";
    padding-inline-start: 1ch;
    font-size: 9.5pt;
}

.colorBadge {
    font-size: 8pt;
    padding: 0 5px 0 5px;
    position: relative;
    display: inline-flex;
    align-items: center;
    top: -10px;
    border-radius: 3px;
    margin-left: 2px;
    color: white;
    background: darkOrange;
}

.version-info {
    font-size: 8pt;
    font-style: italic;
    color: #b0b0b0;
    padding: 10pt;
    text-align: right;
}

.dropdown-menu.show {
    box-shadow: 4px 4px 4px #90909060;
}

#header-title .main-title-icon {
    display: none;
}

@media only screen and (max-width: 1130px) {

    .main-title-img {
        display: none;
    }

    .main-title-caption {
        display: none;
    }

    .title-bar-layout.outer-row {
        display: grid;
        grid-gap: 5pt;
        grid-template-columns: 1fr 1fr 10fr 1fr;
    }

    #header-title .main-title-icon {
        display: flex;
    }

    #header-title .maint-title-icon i::before {
        content: '\f142'; /* ellipsis */
    }

    #header-title:after {
        display: none;
    }

    .menu-icon {
        display: initial;
    }

    .tool-button[data-toggle="offCanvas"] {
        display: flex;
    }

    button.tool-button:focus {
        outline: none;
        border: 2px solid var(--header-text-color);
    }

    #header-title {
        margin: 0;
    }

    .service-page #header-title {
        margin-left: 15pt !important;
    }

    .service-page #header-title:after {
        display: initial;
    }

    .title-bar-layout a.logo {
        top: 0;
        margin: 0;
    }
}


/* Large devices (laptops/desktops, 992px) */
@media only screen and (max-width: 992px) {

    .display-4 {
        font-size: 1.6rem;
        max-width: 75vw;
        margin: 10pt auto;
    }


    .hp-hero #searchform {
        max-width: calc(100vw - 40pt);
    }

    h4 {
        font-size: 1.1rem;
    }

    #header-title {
        display: none !important;
    }

    .logo-wrapper {
        margin-right: 5pt;
    }

}

@media only screen and (max-width: 800px) {
    .search-wrapper {
        max-width: 250px;
    }
}

/* Medium devices (landscape tablets, 768px and up) and smaller */
@media only screen and (max-width: 768px) {
    :root {
        --main--width: calc(100vw - 20pt);
    }

    .title-bar-layout.outer-row {
        grid-template-columns: 1fr 10fr 1fr;
    }


    .hp-hero {
        padding: 20pt 0;
    }


    .logo-wrapper {
        flex-grow: 0;
    }

    .search-wrapper {
        width: 55vw;
        max-width: 350px;
    }

    .title-bar-layout a.logo {
        top: 0;
        margin: 0;
        margin-left: 6pt;
        width: 40px !important;
        height: 40px !important;
        background: transparent url('/images/alloy-square.svg') no-repeat center center;
        background-size: contain;
    }

    .main-title-img {
        display: none;
    }

    .tool-button + .tool-button {
        margin-left: 2pt;
    }

    h1 {
        font-size: 22pt;
        white-space: normal;
    }

    h2 {
        white-space: normal;
    }

    .title-bar-layout.outer-row {
        --main--width: calc(100vw - 26pt);
    }
}

@media only screen and (max-width: 450px) {
    body {
        font-size: 14px;
    }

    table ul {
        padding-left: 8px;
    }
}