/* Navigation - Categories, article menu, and navigation components */

.categories {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
    list-style: none;
}

.categories li a {
    color: var(--uchu-green-8);
    background-color: var(--uchu-green-1);
    border: none;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font-family-san-serif);
}

ul.categories a {
    font-size: 1rem;
}

.article-menu {
    position: relative;
    display: inline-block;
    margin-left: 4rem;
}

.article-menu .menu-trigger {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #333;
    list-style: none;
}

.article-menu .menu-trigger::-webkit-details-marker {
    display: none;
}

.article-menu .menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border: 1px solid #ccc;
}

.article-menu .menu-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.article-menu .menu-content a:hover {
    background-color: #f1f1f1;
}

.article-menu[open] .menu-content {
    display: block;
}

.article-menu[open] .menu-trigger::before {
    content: " ";
    cursor: default;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 99;
    background: transparent;
}
