/*
general utilities class
 */

.ui-link-hover {
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.ui-link-hover:hover,
.ui-link-hover:focus {
    color: var(--color-primary);
    text-decoration: none;
}

.ajus-author-inline {
    display: flex;
    align-items: center;
    color: var(--color-text-main);
}

.ajus-author-inline__avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.ajus-simple-list-link {
    display: block;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.18s ease;
}

.ajus-hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ajus-hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------------------------------
   Accessibility
-------------------------------------------------------------------------- */

/* Text meant only for assistive technology (icon-only controls, skip links…). */
.ajus-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Text shaping
-------------------------------------------------------------------------- */

.ajus-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.ajus-clamp-2,
.ajus-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}

.ajus-clamp-3 {
    -webkit-line-clamp: 3;
}

/* --------------------------------------------------------------------------
   Motion and print
   Respect the user's motion preference, and keep printed pages readable.
-------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    #header-section,
    .footer,
    .message-container,
    .ajus-toast,
    .ajus-notice__dismiss {
        display: none !important;
    }

    body {
        background: var(--color-bg-surface);
    }

    .ajus-card,
    .ajus-notice,
    .ajus-modal,
    table {
        box-shadow: none !important;
        break-inside: avoid;
    }
}
