/* css styles */

/* Styles to override the theme since for customized Posit AI docs */

/* Define AI color variables */
:root {
    --color-ai-blue-400: #409cf1;
    --color-ai-blue-500: #3276b5;
    --color-ai-blue-700: #245b91;
    --color-white: #ffffff;
}

/* Override body background and link colors for Posit AI by setting CSS custom properties */
.quarto-dark {
    --bs-body-bg: #12161f !important;
    --bs-body-bg-rgb: 18, 22, 31 !important;
    --bs-link-color: #409cf1 !important;
    --bs-link-color-rgb: 64, 156, 241 !important;
    --bs-link-hover-color: #5caef4 !important;
    --bs-link-hover-color-rgb: 92, 174, 244 !important;
}

.quarto-dark a {
    color: var(--color-ai-blue-400);
}

/* AI Primary Button Styles - Dark Theme Only */
/* This doesn't pass accessibility - not enough contrast */
.quarto-dark .btn-primary {
    border-color: var(--color-ai-blue-400);
    background-color: var(--color-ai-blue-400);
    color: var(--color-white);
}

.quarto-dark .btn-primary:hover {
    border-color: var(--color-ai-blue-700);
    background-color: var(--color-ai-blue-700);
    color: var(--color-white);
}

.quarto-dark .navbar {
    background-color: #0a0c0e;
    color: #c2c2c4;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    margin-bottom: -9px;
    padding-bottom: 14px !important;
}

.quarto-dark .navbar-nav .nav-link.active,
.quarto-dark .navbar-nav .nav-link.show {
    color: var(--color-ai-blue-400) !important;
    border-bottom: 2px solid var(--color-ai-blue-400) !important;
}

/* Early Release badge */
.badge.bg-primary {
    background-color: #6c757d !important;
    text-decoration: none;
}

.badge.bg-primary:hover {
    text-decoration: none;
}

/********************
 * BEGIN: Style for the navigation "buttons" on the root landing page.
 ********************/

ul.product-list {
    list-style: none;
    padding: 15px 0 0 0;
    margin: 0;
    font-size: 0;
}

ul.product-list li {
    display: inline-block;
    background: white;
    border-radius: 15px;
    vertical-align: top;
    width: 200px;
    height: 153px;
    padding: 0;
    margin: 0 10px;
    box-shadow: 0px 1px 5px rgba(33,33,33,.2);
}

ul.product-list a {
    text-decoration: none !important;
}

ul.product-list a::after {
    content: none !important;
}

ul.product-list a:hover {
    box-shadow: 10px 10px 10px rgba(33,33,33,.2);
    background-color: #447099;
    color: white;
    text-decoration: none !important;
}

ul.product-list li {
    margin-bottom: 30px;
}

ul.product-list li img {
    width: 40px;
    height: auto;
}

.product-btn {
    display: block;
    height: 100%;
    width: 100%;
    text-align: center;
    position: relative;
    border-radius: 15px;
    padding: 10px;
}

.product-btn h3 {
    font-size: 16px;
    font-weight: 500;
    color: #222b37;
    line-height: 22px;
    margin: 20px 0 0;
}

.product-btn:hover h3 {
    font-size: 16px;
    color: #fff !important;
    line-height: 22px;
    margin: 20px 0 0;
}

.aligner {
    display: flex;
    align-items: center;
    min-height: 24em;
    justify-content: center;
}

.aligner-item {
    flex: 1;
}

/********************
 * END: Style for the navigation "buttons" on the root landing page.
 ********************/
