/*=== manual.css ===*/
/*Payment logos*/
.payment-logo {
    display: block;
    width: auto !important;
    height: 24px !important;
    max-width: 65px !important;
    max-height: 24px !important;
    object-fit: contain;
    flex-shrink: 0;
}

/*Language dropdown: shared appearance*/
.dropdown-menu .dropdown-item.language-option {
    position: relative;
    padding-right: 2.75rem;
    font-weight: 400;
    background-color: transparent;
    transition: background-color .15s ease, color .15s ease;
}

.dropdown-menu .dropdown-item.language-option.active {
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.dropdown-menu .dropdown-item.language-option.active::after {
    content: "✓";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
}

/*Language dropdown: light theme*/
[data-bs-theme="light"] .dropdown-menu .dropdown-item.language-option {
    color: #525b6b;
}

[data-bs-theme="light"] .dropdown-menu .dropdown-item.language-option:is(:hover, :focus) {
    color: #212529;
    background-color: #f1f3f5;
}

[data-bs-theme="light"] .dropdown-menu .dropdown-item.language-option.active {
    color: #212529;
    background-color: transparent;
}

/*Language dropdown: dark theme*/
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.language-option {
    color: #b6bac3;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-item.language-option:is(:hover, :focus) {
    color: #fff;
    background-color: #252a31;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-item.language-option.active {
    color: #fff;
    background-color: transparent;
}

/*Theme-dependent items*/
.light-mode-item {
    display: block !important;
}

.dark-mode-item {
    display: none !important;
}

[data-bs-theme="dark"] .light-mode-item {
    display: none !important;
}

[data-bs-theme="dark"] .dark-mode-item {
    display: block !important;
}

.code-toolbar pre[class*="language-"] {
    padding-top: 1em;
}

/* Theme palette and default link colors are configured in _user-variables.scss. */

/*Unclassed content links only: do not override Around components.*/
a:not([class]) {
    color: var(--ar-link-color);
    text-decoration: none;
}

a:not([class]):hover {
    color: var(--ar-link-hover-color);
    text-decoration: none;
}

/*Editorial action links: preserve yellow in both themes without changing navigation or buttons.*/
a.content-link {
    color: #ffb300;
    transition: color .2s ease;
    text-decoration: none;
}

a.content-link:hover, a.content-link:focus-visible {
    color: var(--ar-body-color);
    text-decoration: none;
}

/*=== components.css ===*/
/*Shared, semantic utility classes for eVPS templates.*/
.not-found-illustration {
    max-width: 600px;
}

.not-found-links {
    max-width: 1000px;
}

.not-found-link-icon {
    width: 52px;
    height: 52px;
}

.content-width-lg {
    max-width: 650px;
}

.content-width-md {
    max-width: 760px;
}

.app-logo-fallback-hidden {
    display: none;
}

.sticky-toc {
    top: 6.5rem;
}

.image-contain {
    object-fit: contain;
}

.article-width {
    max-width: 900px;
}

.related-app-icon {
    width: 60px;
    height: 60px;
}

.pagination-side {
    min-width: 125px;
}

.pagination-counter {
    min-width: 55px;
}

.navbar-scroll {
    --ar-scroll-height: 520px;
}

.home-heading-width {
    max-width: 40rem;
}

.home-description-width {
    max-width: 30rem;
}

.flag-rounded {
    border-radius: 5px;
}

.country-link-rounded {
    border-radius: 10px;
}

.hero-description-width {
    max-width: 640px;
}

.hero-image-rounded {
    border-radius: 15px;
}

.content-width-xl {
    max-width: 1100px;
}

.os-icon-slot {
    height: 76px;
}

.sort-icon-spacing {
    margin-bottom: 2px;
}

/*=== apps.css ===*/
/*Only site-specific documentation behavior; layout stays Bootstrap.*/
#documentation .app-article a:not(.btn):not(.badge) {
    color: var(--ar-warning, #ffc107);
}

#documentation .app-article a:not(.btn):not(.badge):hover {
    color: #ffda6a;
}

#documentation .app-article pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    text-align: left;
    tab-size: 2;
}

#documentation .app-article pre code {
    display: block;
    white-space: pre;
    text-align: left;
    padding: 0;
    margin: 0;
    min-width: max-content;
    font-variant-ligatures: none;
}

#documentation .app-toc .nav-link.active {
    color: var(--ar-body-color,#fff) !important;
    background: var(--ar-tertiary-bg,rgba(120,140,160,.13));
    border-left: 3px solid var(--ar-warning,#ffc107);
    font-weight: 600;
}

#documentation .app-toc .nav-link {
    border-left: 3px solid transparent;
}

#documentation .app-article [id] {
    scroll-margin-top: 110px;
}

#apps-catalog .app-card {
    transition: background-color .18s ease, transform .18s ease;
}

#apps-catalog .app-card:hover {
    transform: translateY(-3px);
}

#apps-catalog .app-card-footer {
    margin-inline: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

#apps-catalog .app-card-footer > .border-top {
    margin-inline: 0;
    width: 100%;
}

#apps-catalog .app-logo {
    width: 58px;
    height: 58px;
}

#apps-catalog .app-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

#apps-catalog .app-os-icon {
    min-width: 26px;
    min-height: 26px;
}

#apps-catalog .app-os-icon img {
    display: block;
    object-fit: contain;
}

#apps-catalog .app-badges, #apps-catalog .app-os-list {
    position: relative;
    z-index: 1;
}

/*Documentation images (formerly in manual.css).*/
#documentation .app-db-markdown p:has(> img:only-child) {
    text-align: center;
}

#documentation .app-db-markdown p > img:only-child {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
}

/*=== blog.css ===*/
.blog-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .1) !important;
}

.blog-card-title {
    color: var(--ar-heading-color, var(--ar-body-color));
}

.blog-card-title:hover {
    color: #e69a00;
}

.blog-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*=== support.css ===*/
.support-category {
    background-color: transparent;
    border: 1px solid var(--ar-border-color, var(--bs-border-color, #454b51));
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.support-category-icon {
    width: 44px;
    height: 44px;
    background-color: var(--ar-secondary-bg, var(--bs-secondary-bg, #252b31));
}

@media (hover: hover) and (pointer: fine) {
    .support-category:hover {
        border-color: var(--ar-primary, #448c74) !important;
        background-color: var(--ar-secondary-bg, rgba(128,128,128,.06));
        transform: translateY(-2px);
    }
}

.support-category:focus-visible {
    outline: 2px solid var(--ar-primary, #448c74);
    outline-offset: 2px;
}

.support-search-result {
    border: 1px solid transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

.support-search-result-title {
    color: var(--ar-heading-color, var(--bs-heading-color, inherit));
    transition: color .2s ease;
}

.support-search-result:hover, .support-search-result:focus-visible {
    background-color: var(--ar-tertiary-bg, var(--bs-tertiary-bg, #252b31)) !important;
    border-color: var(--ar-border-color, var(--bs-border-color, #454b51));
}

.support-search-result:hover .support-search-result-title, .support-search-result:focus-visible .support-search-result-title {
    color: #ffc107;
}

@media (prefers-reduced-motion: reduce) {
    .support-search-result, .support-search-result-title, .support-category {
        transition: none;
    }

    .support-category:hover {
        transform: none;
    }
}

/* Analytics consent banner */
.analytics-consent {
    z-index: 1080;
}

/* Application description previews */
.app-description-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* Legal document spacing */
.legal-content > p:first-child {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.legal-content > hr {
    margin-top: 0;
    margin-bottom: 0;
}

.legal-content > hr + p,
.legal-content > hr + h2,
.legal-content > hr + h3,
.legal-content > hr + ul,
.legal-content > hr + ol {
    margin-top: 1.5rem;
}

/* Explicit language dropdown states in both themes. */
[data-bs-theme="dark"] .dropdown-menu .dropdown-item.language-option:is(:hover, :focus-visible, .active) {
    color: #fff !important;
}

[data-bs-theme="light"] .dropdown-menu .dropdown-item.language-option:is(:hover, :focus-visible, .active) {
    color: #212529 !important;
}

.europe-map {
    width: 100%;
    max-width: 1600px;
    aspect-ratio: 1.51 / 1;
    height: auto;
    min-height: 0;
    margin-inline: auto;
    overflow: hidden;
    touch-action: pan-y;
}

.europe-map .jvm-container,
.europe-map .jvm-container svg {
    width: 100%;
    height: 100%;
    touch-action: pan-y !important;
}

.europe-map .jvm-region {
    stroke: #202e3b;
    stroke-width: 0px;
    vector-effect: non-scaling-stroke;
    transition: fill-opacity 0.15s ease;
}

.europe-map #europe-map-labels text {
    user-select: none;
    -webkit-user-select: none;
}

/* Apps showcase */
.apps-showcase {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.apps-showcase .swiper-wrapper {
    display: flex;
    align-items: flex-start;
    transition-timing-function: linear;
}
.apps-showcase .swiper-slide,
.apps-showcase-item {
    width: 132px;
    height: auto;
    flex-shrink: 0;
}
.apps-showcase img,
.apps-showcase-static img {
    display: block;
    width: 48px;
    height: 48px;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
}
.apps-showcase-static { display: none; }
@media (prefers-reduced-motion: reduce) {
    .apps-showcase.swiper { display: none; }
    .apps-showcase-static {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}
