/**
 * Aimeos Theme - Lazy loaded CSS
 * @license MIT, https://opensource.org/license/MIT
 */

dialog > article {
    background-color: var(--pico-contrast-inverse);
    height: calc(100vh - 2rem);
    overflow: unset;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: calc(var(--pico-border-radius) * 4);
}

dialog header {
    background-color: var(--pico-muted-background-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
    border-radius: calc(var(--pico-border-radius) * 2) calc(var(--pico-border-radius) * 2) 0 0;
}

dialog form {
    display: flex;
    padding: 1rem;
}

dialog input,
dialog button {
    background-color: var(--pico-contrast-inverse);
    color: var(--pico-contrast);
    appearance: none;
    box-shadow: none;
    border: none;
    padding: 0.5rem;
}

dialog button[type=reset] {
    border-radius: var(--pico-border-radius);
    margin-inline-start: 4px;
    cursor: pointer;
}

dialog button[type=reset]:hover {
    background-color: var(--pico-muted-background-color);
}

dialog input {
    border: 1px solid var(--pico-contrast-border);
    background-color: var(--pico-contrast-inverse);
    font-size: var(--pico-font-size);
    display: block;
    width: 100%;
    margin: 0 1px;
    outline: none;
    border-radius: var(--pico-border-radius);
    padding: 0.5rem 1rem;
}

dialog input:focus-visible {
    border: 1px solid var(--pico-primary);
    box-shadow: 0 0 0 3px var(--pico-primary-background);
}

dialog input::-webkit-input-placeholder {
    color: var(--pico-muted-color);
}

dialog.search .results {
    height: calc(100% - 6.5rem);
    overflow-y: auto;
    padding: 0 1rem;
    margin: 1rem 0;
}

dialog.search a.result-item {
    border-inline-start: 2px solid var(--pico-muted-border-color);
    color: var(--pico-color);
    text-decoration: none;
    cursor: pointer;
    display: block;
    padding: 0.5rem;
    padding-inline-start: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) 0;
    transition: background-color 0.15s ease;
}

dialog.search a.result-item:hover {
    background-color: var(--pico-muted-background-color);
    border-inline-start-color: var(--pico-primary);
    color: var(--pico-contrast);
    opacity: 1;
}

dialog.search .result-title {
    border-bottom: 1px solid var(--pico-muted-border-color);
    display: block;
    font-weight: 500;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

dialog.search .result-content {
    display: block;
    color: var(--pico-muted-color);
    font-size: calc(var(--pico-font-size) * 0.7);
}

dialog.search .result-content b {
    background-color: var(--pico-text-selection-color);
    color: var(--pico-contrast);
    padding: 0.1rem 0.25rem;
    border-radius: calc(var(--pico-border-radius) * 0.75);
}

dialog.search .load-more {
    background-color: var(--pico-contrast-inverse);
    color: var(--pico-contrast);
    border: 1px solid var(--pico-contrast-border);
    cursor: pointer;
    display: block;
    font-size: calc(var(--pico-font-size) * 0.7);
    margin: 1rem auto;
    padding: 0.5rem 1.5rem;
    border-radius: var(--pico-border-radius);
    transition: background-color 0.15s ease;
}

dialog.search .load-more:hover {
    background-color: var(--pico-muted-background-color);
}

dialog.search .load-more:disabled {
    opacity: 0.5;
    cursor: wait;
}

@media (min-width: 1024px) {
    dialog>article {
        max-width: 950px;
    }
}


blockquote {
    padding-block: 0.25rem;
}

.caption:not(:empty) {
    max-width: 60rem;
    margin: 0.75rem auto;
    font-size: calc(var(--pico-font-size) * 0.65);
    color: var(--pico-muted-color);
    font-weight: 400;
}


pre:has(code[class*="language-"]) {
    background-color: var(--pico-code-background-color);
    border-radius: calc(var(--pico-border-radius) * 2);
    border: 1px solid var(--pico-muted-border-color);
    padding: 2rem;
}

pre code[class*=language-] {
    color: var(--pico-code-color);
    font-family: var(--pico-font-family-monospace);
    background-color: var(--pico-code-background-color);
    border-radius: calc(var(--pico-border-radius) * 2);
    overflow-x: auto;
    display: block;
    width: 100%;
}

p code {
    color: var(--pico-code-color);
    background-color: var(--pico-code-background-color);
    border-radius: calc(var(--pico-border-radius) * 2);
    font-family: var(--pico-font-family-monospace);
    overflow-wrap: anywhere;
    padding: 0.15rem 0.4rem;
    font-size: 0.875em;
}


footer.bottom {
    color: var(--pico-contrast-inverse);
    background-color: var(--pico-contrast);
    font-size: calc(var(--pico-font-size) * 0.65);
    font-weight: 400;
    margin: 0;
}

footer.bottom .container {
    max-width: 1280px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer.cms-content + footer.bottom .container {
    border-top: 1px solid #FFFFFF26;
}

footer.cms-content + footer.bottom {
    display: none;
}

footer.cms-content,
footer.cms-content > :nth-child(odd) {
    background-color: #CAD2D9;
}

footer.cms-content {
    border-top: 1px solid #E6EAEE;
}

footer.cms-content > .cards > .container {
    max-width: 1140px !important;
    padding: 32px 20px;
}

footer.cms-content .cards .card-list {
    grid-template-columns: 1fr;
    justify-self: auto;
    gap: 0;
    padding: 20px 0;
}

@media screen and (min-width: 768px) {
    footer.cms-content .cards .card-list {
        display: block;
        column-count: 3;
        column-gap: 0;
    }

    footer.cms-content .cards .card-item {
        break-inside: avoid;
    }
}

footer.cms-content .cards .card-item {
    width: min(100%, 240px);
    min-width: 0;
    margin-inline: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    text-align: start;
}

footer.cms-content .cards .card-item:has(.card-image):not(:has(.cms-text ul)) {
    padding-block: 40px;
}

footer.cms-content .cards .card-item:hover {
    box-shadow: none;
    transform: none;
}

footer.cms-content .cards :is(.title, .cms-text h2) {
    color: var(--pico-contrast);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-align: start;
}

footer.cms-content .cards .title {
    width: min(100%, 12em);
    margin: 0.5em auto;
}

footer.cms-content .cards .cms-text h2 {
    margin: 40px 0 16px;
}

footer.cms-content .cards .card-item:last-child .title,
footer.cms-content .cards .card-item:has(.card-image):not(:has(.cms-text ul)) .title,
footer.cms-content .cards .card-item:has(.cms-text img):not(:has(.cms-text ul)) .title,
footer.cms-content .cards .cms-text h2:has(+ p img) {
    display: none;
}

footer.cms-content .cards :is(.text, .cms-text) {
    color: var(--pico-contrast);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

footer.cms-content .cards :is(.text, .cms-text) p {
    line-height: 1.5;
    margin: 0;
}

footer.cms-content .cards :is(.text, .cms-text) a,
footer.cms-content .cards :is(.text, .cms-text) a:visited,
footer.cms-content .cards :is(.text, .cms-text) a:hover,
footer.cms-content .cards :is(.text, .cms-text) a:focus,
footer.cms-content .cards :is(.text, .cms-text) a:active {
    color: var(--pico-contrast);
    text-decoration: none;
    padding: 0;
}

footer.cms-content .cards :is(.text, .cms-text) a:hover {
    color: var(--pico-primary-hover);
}

footer.cms-content .cards :is(.text, .cms-text) ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

footer.cms-content .cards :is(.text, .cms-text) li {
    padding: 3px 0;
    list-style: none;
    line-height: 24px;
}

footer.cms-content .cards :is(.text, .cms-text) li::marker {
    content: "";
}

footer.cms-content .cards .cms-text img {
    display: block;
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: none;
    object-fit: contain;
    transform: none;
}

footer.cms-content .cards .cms-text p:has(img) {
    padding: 40px 0;
}

footer.cms-content .cards .card-image {
    width: min(160px, 100%);
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

footer.cms-content .cards .card-item picture {
    width: min(160px, 100%);
    aspect-ratio: auto;
    margin: 0 auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

footer.cms-content .cards .card-image picture {
    width: 100%;
    margin: 0;
}

footer.cms-content .cards .card-item picture img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

footer.cms-content .cards .card-item:last-child .cms-text ul {
    display: grid;
    grid-template-columns: max-content;
    width: min(160px, 100%);
    margin: 32px auto 0;
    justify-items: start;
    gap: 0;
}

footer.cms-content .cards .card-item:last-child .cms-text li {
    padding: 0;
}

footer.cms-content .cards .card-item:last-child .cms-text li a {
    --footer-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 10.7 5.3 9.6l4.3-4.3 1.1 1.1-4.3 4.3ZM4.2 12.9l-1.1-1.1a3 3 0 0 1 0-4.2l2.1-2.1 1.1 1.1-2.1 2.1a1.5 1.5 0 0 0 0 2.1l1.1 1.1a1.5 1.5 0 0 0 2.1 0l2.1-2.1 1.1 1.1L8.5 13a3 3 0 0 1-4.3-.1Zm5.5-3.4L8.6 8.4l2.1-2.1a1.5 1.5 0 0 0 0-2.1L9.6 3.1a1.5 1.5 0 0 0-2.1 0L5.4 5.2 4.3 4.1 6.4 2a3 3 0 0 1 4.2 0l1.1 1.1a3 3 0 0 1 0 4.2L9.7 9.5Z'/%3E%3C/svg%3E");
    display: grid;
    grid-template-columns: 44px auto;
    align-items: center;
    gap: 8px;
    width: 160px;
    min-height: 60px;
    padding: 8px 0;
    font-size: 14.5px;
    line-height: 14.5px;
}

footer.cms-content .cards .card-item:last-child .cms-text li a::before {
    width: 44px;
    height: 44px;
    background-color: currentColor;
    content: "";
    -webkit-mask-image: var(--footer-social-icon);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: var(--footer-social-icon);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

footer.cms-content .cards .card-item:last-child .cms-text a[href*="github.com"] {
    --footer-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.65 7.65 0 0 1 8 4.58c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z'/%3E%3C/svg%3E");
}

footer.cms-content .cards .card-item:last-child .cms-text a[href*="youtube.com"] {
    --footer-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 2h8a4 4 0 0 1 4 4v4a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4Zm3 3.5v5L11.5 8 7 5.5Z'/%3E%3C/svg%3E");
}

footer.cms-content .cards .card-item:last-child .cms-text a[href*="mastodon."] {
    --footer-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M15.5 9.3c-.2 1.3-1.8 2.8-3.6 3.1-.9.2-1.8.3-2.8.2-1.6-.1-2.9-.4-2.9-.4v.7c.2 1.4 1.4 1.5 2.9 1.6 1.5 0 2.8-.4 2.8-.4l.1 1.3s-1 .6-2.9.7c-1 .1-2.2 0-3.6-.4-2.9-.8-3.4-4-3.5-7.2V5.8c0-3.3 2.2-4.3 2.2-4.3C5.3 1 7.2.8 9 .8h.1c1.8 0 3.7.2 4.8.7 0 0 2.2 1 2.2 4.3 0 0 0 2.4-.6 3.5ZM13.2 6V4.4c0-1.3-.8-2-1.9-2-1.2 0-1.8.8-2.2 1.4l-.5.8-.5-.8C7.7 3.2 7 2.4 5.9 2.4c-1.1 0-1.9.7-1.9 2V9h1.8V4.6c0-.5.2-.8.7-.8s.8.3.8 1v2.5h1.8V4.8c0-.7.3-1 .8-1 .5 0 .7.3.7.8V9h1.8V6Z'/%3E%3C/svg%3E");
}

footer.cms-content .cards .card-item:last-child .cms-text a[href*="facebook.com"] {
    --footer-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 3h3V0H9C6.8 0 5 1.8 5 4v2H2v3h3v7h3V9h3l1-3H8V4c0-.6.4-1 1-1Z'/%3E%3C/svg%3E");
}

footer.cms-content .cards .card-item:last-child .cms-text :is(a[href*="twitter.com"], a[href*="x.com"]) {
    --footer-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 1h3.5l3.8 5L12.5 1H15L9.5 7.7 15 15h-3.5L7.3 9.4 2.5 15H0l6.1-7.3L1 1Z'/%3E%3C/svg%3E");
}

footer.cms-content .cards .card-item:last-child .cms-text a[href$="/contact"] {
    --footer-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M0 3h16v10H0V3Zm2 2 6 4 6-4H2Zm12 6V7l-6 4-6-4v4h12Z'/%3E%3C/svg%3E");
}

footer.cms-content .cards h2,
footer.cms-content .heading h1,
footer.cms-content .heading h2,
footer.cms-content .heading h3 {
    color: var(--pico-contrast);
}

footer.cms-content .text {
    color: var(--pico-muted-color);
}

footer.cms-content a,
footer.cms-content a:visited {
    color: var(--pico-contrast);
}

footer.cms-content a:hover {
    color: var(--pico-primary-hover);
}

footer.cms-content :focus-visible {
    outline-color: var(--pico-primary-hover);
}

/* Content tables (markdown/HTML) — mirrors table.css .table-responsive */
.cms-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-color: var(--pico-contrast-background);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: calc(var(--pico-border-radius) * 4);
    padding: 2rem;
}

.cms-content th,
.cms-content td {
    padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
    border-bottom: 1px solid var(--pico-muted-border-color);
    vertical-align: middle;
}

.cms-content th {
    color: var(--pico-contrast);
    font-weight: 500;
    font-size: calc(var(--pico-font-size) * 0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.cms-content th:first-child {
    text-align: start;
}

.cms-content td {
    text-align: center;
}

.cms-content th > *:first-child,
.cms-content td > *:first-child {
    margin-top: 0;
}

.cms-content th > *:last-child,
.cms-content td > *:last-child {
    margin-bottom: 0;
}

.cms-content th img {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    height: 100%;
    width: 100%;
}
