/**
 * Copyright (c) 2023-2025, WSO2 LLC. (https://www.wso2.com).
 *
 * WSO2 LLC. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

:root,
[data-md-color-scheme=default] {
    --md-home-body-gradient: conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #d9a300 180deg, var(--md-primary-fg-color) 1turn);
}

.md-home-gradient {
    background: var(--md-home-body-gradient);
    width: 1000px;
    height: 1000px;
    display: block;
    mix-blend-mode: normal;
    filter: blur(75px);
    opacity: .15;
    will-change: filter;
    border-radius: 9999px;
    max-width: 100%;
    top: -500px;
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.md-home-search-container {
    position: relative;
    isolation: isolate;
    margin: 0 auto 10px;
}

.md-home-search-input-label {
    margin-bottom: 0.5em;
}

.md-home-search-input-description {
    display: block;
    max-width: 800px;
    margin: 2em 0 1.75em;
}

.wso2-alt-product-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    max-width: 800px;
    margin: 0 0 2.5rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--md-primary-fg-color) 25%, var(--md-default-fg-color--lightest));
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--md-primary-fg-color) 5%, transparent);
    color: var(--md-default-fg-color);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wso2-alt-product-banner:hover {
    border-color: color-mix(in srgb, var(--md-primary-fg-color) 45%, var(--md-default-fg-color--lightest));
    background: color-mix(in srgb, var(--md-primary-fg-color) 8%, transparent);
    box-shadow: 0 12px 28px -18px color-mix(in srgb, var(--md-primary-fg-color) 55%, transparent);
}

.wso2-alt-product-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--md-primary-fg-color) 14%, transparent);
    color: var(--md-primary-fg-color);
}

.wso2-alt-product-banner-icon svg {
    width: 14px;
    height: 14px;
}

.wso2-alt-product-banner-text {
    flex: 1 1 auto;
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--md-default-fg-color--light);
}

.wso2-alt-product-banner-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--md-default-fg-color);
    margin-bottom: 0.1rem;
}

.wso2-alt-product-banner-cta {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background-color: var(--md-default-bg-color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-primary-fg-color) 25%, var(--md-default-fg-color--lightest));
    color: var(--md-primary-fg-color);
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.wso2-alt-product-banner-cta svg {
    width: 11px;
    height: 11px;
    transition: transform 0.2s ease;
}

.wso2-alt-product-banner-cta:hover {
    background-color: color-mix(in srgb, var(--md-primary-fg-color) 16%, var(--md-default-bg-color));
    color: var(--md-primary-fg-color);
    transform: translateY(-1px);
}

.wso2-alt-product-banner-cta:hover svg {
    transform: translateX(2px);
}

@media screen and (max-width: 44.9375em) {
    .wso2-alt-product-banner {
        flex-wrap: wrap;
        width: 100%;
        max-width: none;
        padding: 1.25rem;
    }

    .wso2-alt-product-banner-text {
        max-width: none;
    }

    .wso2-alt-product-banner-cta {
        margin-left: calc(30px + 0.85rem);
    }
}

.md-home-sections {
    max-width: var(--md-main-content-max-width);
    margin-bottom: 5rem !important;
}

.md-column-grid {
    margin: auto;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.md-grid-column {
    width: 32%;
    display: inline-block;
    vertical-align: top;
}

.md-grid-column:last-child {
    margin-right: 0;
}

.md-column-grid-item {
    margin: 0 0 20px 0;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
}

.md-column-grid-item-header-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.md-column-grid-item-header-text {
    font-size: .8rem;
    font-weight: 600;
    line-height: 2.5;
}

.md-column-grid-item-header-icon {
    background: #F7F8FB;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    gap: 10px;
    height: 2rem;
    width: 2rem;
    display: inline-block;
}

.md-column-grid-item-header-icon>svg {
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 45%;
}

.md-list-item>a {
    color: var(--md-default-fg-color);
    display: block;
    padding: 10px 0;
    white-space: nowrap;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.md-list-item:last-child>a {
    border-bottom: none;
}

.md-list-item-icon {
    margin-right: 0.5rem;
    vertical-align: top;
}

.md-list-item-icon,
.md-list-item-text {
    max-width: 92%;
    white-space: normal;
}

.md-list-item-icon,
.md-list-item-text {
    display: inline-block;
}

.md-list-item-icon svg>path {
    fill: var(--md-primary-fg-color);
}

.md-search__icon[for=__search] {
    top: 0.8rem;
}

[dir=ltr] .md-search__icon[for=__search] {
    left: 0.8rem;
}

.md-search-result__icon {
    margin: 0.5rem 0.9rem;
}

[dir=ltr] .md-search__inner {
    float: none;
    width: 600px;
    height: auto;
    position: relative;
    opacity: 1;
    transform: none;
    max-width: 100%;
}

[dir=ltr] .md-search__input {
    padding-left: 2.8rem;
    height: 100%;
}

.md-search__output {
    top: 2.9rem;
}

.md-search__form {
    height: 2.8rem;
}

.md-search__icon[for=__search] svg:first-child {
    display: block;
}

.md-search__icon[for=__search] svg:last-child {
    display: none;
}

[data-md-toggle=search]:checked~.md-container .md-home-search-container .md-search__inner {
    overflow: visible;
}

[data-md-toggle=search]:checked~.md-container .md-home-search-container .md-search__form {
    background-color: var(--md-default-bg-color);
    border-radius: 0.1rem 0.1rem 0 0;
    box-shadow: 0 0 0.6rem #00000012;
    color: var(--md-default-fg-color);
}

[data-md-toggle=search]:checked~.md-container .md-home-search-container .md-search__scrollwrap {
    max-height: 50vh;
}

[data-md-toggle=search]:checked~.md-container .md-home-search-container .md-search__output {
    box-shadow: var(--md-shadow-z3);
    opacity: 1 !important;
    bottom: auto;
}

[data-md-toggle=search]:checked~.md-container .md-home-search-container .md-search__output .md-search-result__list {
    margin: 0;
}

[data-md-toggle=search]:checked~.md-container .md-home-search-container .md-search__output .md-search-result__item {
    margin-left: 0;
}

[data-md-toggle=search]:checked~.md-container .md-home-search-container .md-search__overlay {
    background-color: #0000008a;
    height: 200vh;
    opacity: 1 !important;
    transition: width 0ms, height 0ms, opacity .25s;
    width: 100%;
    cursor: pointer;
    left: 0;
    position: fixed;
    top: 0;
    border-radius: 0 !important;
    pointer-events: auto;
}

[dir=ltr] .md-search-result__meta {
    padding-left: 2.8rem;
}

[dir=ltr] .md-search-result__article {
    padding-left: 2.9rem;
}

[dir=ltr] .md-search-result__more>summary>div {
    padding-left: 1.5rem;
}

[dir=ltr] .md-search-result__more>summary:before {
    left: 1.3rem;
    top: 0.8rem;
}

.md-search__scrollwrap {
    width: 100% !important;
}

.md-sidebar--secondary {
    display: none !important;
}

@media screen and (min-width: 76.25em) {
    [data-md-toggle=search]:checked~.md-header .md-tabs,
    [data-md-toggle=search]:checked~.md-header .md-header__version-select-dropdown {
        opacity: 1 !important;
    }

    [dir=ltr] .md-sidebar--secondary:not([hidden])~.md-content > .md-content__inner,
    [dir=rtl] .md-sidebar--primary:not([hidden])~.md-content > .md-content__inner {
        max-width: 1200px !important;
    }
}

@media screen and (max-width: 76.1875em) {
    .md-column-grid {
        flex-direction: column;
    }

    .md-grid-column {
        width: 100%;
        display: block;
    }
}

/* ==========================================================================
   Guided home page (templates/guided-home-page.html)
   Sections run top to bottom. Colors come from the Material theme variables
   so the page follows the light and dark schemes.
   ========================================================================== */

.md-guided-home {
    --md-guided-tint: color-mix(in srgb, var(--md-primary-fg-color) 10%, transparent);
    --md-guided-border: var(--md-default-fg-color--lightest);
    max-width: 1200px;
    margin: 0 auto 4rem;
}

[dir] .md-typeset .md-guided-home ul,
[dir] .md-typeset .md-guided-home ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

[dir] .md-typeset .md-guided-home li {
    margin: 0;
}

.md-typeset .md-guided-home a {
    color: inherit;
}

.md-guided-home svg {
    fill: currentColor;
}

/* Sections */

.md-guided-section {
    padding: 2.5rem 0;
}

.md-guided-section-header {
    max-width: 40rem;
    margin-bottom: 1.6rem;
}

.md-typeset .md-guided-eyebrow {
    margin: 0 0 .4rem;
    color: var(--md-primary-fg-color);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.md-typeset .md-guided-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--md-default-fg-color);
}

.md-typeset .md-guided-lead {
    margin: .5rem 0 0;
    font-size: .8rem;
    line-height: 1.6;
    color: var(--md-default-fg-color--light);
}

/* Shared card parts */

.md-guided-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .5rem;
    background: var(--md-guided-tint);
    color: var(--md-primary-fg-color);
}

.md-guided-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.md-guided-card-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.md-guided-card-title {
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--md-default-fg-color);
}

.md-guided-card-text {
    font-size: .7rem;
    line-height: 1.55;
    color: var(--md-default-fg-color--light);
}

.md-typeset .md-guided-tile,
.md-typeset .md-guided-stage,
.md-typeset .md-guided-link-row {
    display: flex;
    gap: .8rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--md-guided-border);
    border-radius: .6rem;
    background: var(--md-default-bg-color);
    transition: border-color .15s cubic-bezier(.4, 0, .2, 1), transform .15s cubic-bezier(.4, 0, .2, 1);
}

.md-typeset .md-guided-tile:hover,
.md-typeset .md-guided-stage:hover,
.md-typeset .md-guided-link-row:hover {
    border-color: var(--md-primary-fg-color);
    transform: translateY(-2px);
}

.md-typeset .md-guided-tile:focus-visible,
.md-typeset .md-guided-stage:focus-visible,
.md-typeset .md-guided-link-row:focus-visible,
.md-typeset .md-guided-link:focus-visible {
    outline: 2px solid var(--md-primary-fg-color);
    outline-offset: 2px;
}

/* Steps: numbered, connected, left to right */

.md-typeset .md-guided-home .md-guided-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    counter-reset: none;
}

.md-guided-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .9rem 1rem;
    border: 1px solid var(--md-guided-border);
    border-radius: .6rem;
    background: var(--md-default-bg-color);
}

.md-guided-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.75rem;
    right: -.9rem;
    width: .9rem;
    border-top: 2px dashed var(--md-guided-border);
}

.md-guided-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--md-primary-fg-color);
    color: #ffffff;
    font-size: .7rem;
    font-weight: 600;
}

.md-typeset .md-guided-step-title {
    margin: .1rem 0 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--md-default-fg-color);
}

.md-typeset .md-guided-step-text {
    flex: 1;
    margin: 0;
    font-size: .65rem;
    line-height: 1.5;
    color: var(--md-default-fg-color--light);
}

.md-typeset .md-guided-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .3rem;
    color: var(--md-primary-fg-color);
    font-size: .7rem;
    font-weight: 600;
}

.md-typeset .md-guided-home a.md-guided-link {
    color: var(--md-primary-fg-color);
}

.md-guided-link svg {
    width: .8rem;
    height: .8rem;
}

/* Framework picker: a dropdown of quickstarts inside a step */

.md-typeset details.md-guided-picker {
    position: relative;
    display: block;
    overflow: visible;
    margin: .3rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    color: inherit;
    font-size: inherit;
}

.md-typeset details.md-guided-picker > :last-child {
    margin-bottom: 0;
}

.md-typeset .md-guided-picker > .md-guided-picker-trigger::before,
.md-typeset .md-guided-picker > .md-guided-picker-trigger::after {
    content: none;
    display: none;
}

.md-typeset .md-guided-picker > .md-guided-picker-trigger {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .6rem;
    border: 1px solid var(--md-guided-border);
    border-radius: .5rem;
    background: var(--md-default-bg-color);
    color: var(--md-default-fg-color);
    font-size: .7rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
    transition: border-color .15s cubic-bezier(.4, 0, .2, 1);
}

.md-typeset .md-guided-picker > .md-guided-picker-trigger::-webkit-details-marker {
    display: none;
}

.md-typeset .md-guided-picker > .md-guided-picker-trigger:hover,
.md-typeset .md-guided-picker[open] > .md-guided-picker-trigger {
    border-color: var(--md-primary-fg-color);
}

.md-typeset .md-guided-picker > .md-guided-picker-trigger:focus-visible {
    outline: 2px solid var(--md-primary-fg-color);
    outline-offset: 2px;
}

.md-guided-picker-logos {
    display: flex;
    align-items: center;
}

.md-guided-picker-logos > * {
    margin-left: -.35rem;
    border: 2px solid var(--md-default-bg-color);
}

.md-guided-picker-logos > *:first-child {
    margin-left: 0;
}

.md-guided-picker-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.md-guided-picker-logos .md-guided-fw-logo,
.md-guided-picker-logos .md-guided-fw-more {
    width: 1.25rem;
    height: 1.25rem;
}

.md-guided-picker-chevron {
    display: flex;
    color: var(--md-default-fg-color--light);
    transition: transform .15s cubic-bezier(.4, 0, .2, 1);
}

.md-guided-picker-chevron svg {
    width: .8rem;
    height: .8rem;
}

.md-guided-picker[open] .md-guided-picker-chevron {
    transform: rotate(180deg);
}

.md-typeset .md-guided-home .md-guided-picker-menu {
    position: absolute;
    z-index: 4;
    top: calc(100% + .3rem);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .15rem;
    padding: .35rem;
    border: 1px solid var(--md-guided-border);
    border-radius: .6rem;
    background: var(--md-default-bg-color);
    box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .12);
}

.md-typeset .md-guided-picker-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .45rem;
    border-radius: .4rem;
    font-size: .7rem;
    transition: background-color .15s cubic-bezier(.4, 0, .2, 1);
}

.md-typeset .md-guided-picker-option:hover,
.md-typeset .md-guided-picker-option:focus-visible {
    background: var(--md-guided-tint);
    outline: none;
}

.md-guided-picker-option-name {
    flex: 1;
    min-width: 0;
}

.md-guided-picker-option-arrow {
    display: flex;
    color: var(--md-primary-fg-color);
    opacity: 0;
    transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
}

.md-guided-picker-option-arrow svg {
    width: .7rem;
    height: .7rem;
}

.md-guided-picker-option:hover .md-guided-picker-option-arrow,
.md-guided-picker-option:focus-visible .md-guided-picker-option-arrow {
    opacity: 1;
}

/* Framework logos, in brand colors where they read on both schemes */

.md-guided-fw-logo,
.md-guided-fw-more {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: .2rem;
    border-radius: 50%;
    background: var(--md-default-fg-color--lightest);
    color: var(--md-default-fg-color);
}

.md-guided-fw-logo svg {
    width: 100%;
    height: 100%;
}

.md-guided-fw-more {
    font-size: .55rem;
    font-weight: 600;
}

.md-guided-fw-logo--react { color: #149eca; }
.md-guided-fw-logo--angular { color: #dd0031; }
.md-guided-fw-logo--vue { color: #42b883; }
.md-guided-fw-logo--javascript { color: #e0c400; }
.md-guided-fw-logo--spring-boot { color: #6db33f; }
.md-guided-fw-logo--node { color: #5fa04e; }
.md-guided-fw-logo--dotnet { color: #7a5af8; }
.md-guided-fw-logo--nextjs path { fill: currentColor; }

/* Featured section: Start here, shown as one highlighted panel under search */

.md-guided-section--featured {
    margin: .5rem 0 1rem;
    padding: 1.2rem 1.4rem 1.3rem;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: .8rem;
    background: color-mix(in srgb, var(--md-default-fg-color) 4%, var(--md-default-bg-color));
    box-shadow: 0 .6rem 1.6rem -1rem rgba(0, 0, 0, .35);
}

.md-guided-section--featured .md-guided-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .6rem;
    max-width: none;
    margin-bottom: 1.1rem;
}

.md-typeset .md-guided-section--featured .md-guided-eyebrow {
    margin: 0;
}

.md-typeset .md-guided-section--featured .md-guided-title {
    font-size: .95rem;
}

.md-typeset .md-guided-section--featured .md-guided-lead {
    display: none;
}

.md-typeset .md-guided-section--featured .md-guided-steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 0;
}

.md-guided-section--featured .md-guided-step {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    align-content: start;
    gap: .4rem .7rem;
    padding: .1rem 1.4rem;
    border: 0;
    border-left: 1px solid var(--md-guided-border);
    border-radius: 0;
    background: transparent;
}

.md-guided-section--featured .md-guided-step:first-child {
    padding-left: 0;
    border-left: 0;
}

.md-guided-section--featured .md-guided-step:last-child {
    padding-right: 0;
}

.md-guided-section--featured .md-guided-step::after {
    display: none;
}

.md-guided-section--featured .md-guided-step > * {
    grid-column: 2;
}

.md-guided-section--featured .md-guided-step-number {
    grid-column: 1;
    grid-row: 1;
    width: 1.5rem;
    height: 1.5rem;
    font-size: .65rem;
}

.md-typeset .md-guided-section--featured .md-guided-step-title {
    margin: 0;
    font-size: .75rem;
    line-height: 1.5rem;
}

/* Tiles: feature and resource grids */

.md-typeset .md-guided-home .md-guided-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: .8rem;
}

/* Stages: the production lifecycle, read left to right */

.md-typeset .md-guided-home .md-guided-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.md-typeset .md-guided-stage {
    flex-direction: column;
    gap: .4rem;
}

.md-guided-stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .3rem;
}

.md-guided-stage-index {
    font-family: var(--md-code-font-family);
    font-size: .65rem;
    color: var(--md-default-fg-color--lighter);
}

/* Links: community and support */

.md-typeset .md-guided-home .md-guided-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}


@media screen and (max-width: 59.9375em) {
    .md-typeset .md-guided-home .md-guided-steps,
    .md-typeset .md-guided-home .md-guided-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .md-typeset .md-guided-section--featured .md-guided-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .md-guided-step:not(:last-child)::after {
        display: none;
    }

    .md-guided-section--featured .md-guided-step,
    .md-guided-section--featured .md-guided-step:first-child,
    .md-guided-section--featured .md-guided-step:last-child {
        padding: .7rem 0;
        border-left: 0;
        border-top: 1px solid var(--md-guided-border);
    }

    .md-guided-section--featured .md-guided-step:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .md-typeset .md-guided-home .md-guided-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media screen and (max-width: 29.9375em) {
    .md-typeset .md-guided-home .md-guided-stages {
        grid-template-columns: minmax(0, 1fr);
    }
}
