#keepingTitle {
    display: none;
}

.logo-text:has(.eo-en) {
    line-height: 1.2;
}

.eo-zh,
.eo-ja {
    font-size: 1rem;
}

.eo-zh {
    font-family: "Chocolate Classical Sans", sans-serif;
}

.eo-ja {
    font-family: "LINE Seed JP", sans-serif;
}

.eo-en {
    font-family: "Outfit", sans-serif;
    font-size: 1.45rem;
}

.backToTop {
    display: block;
    width: fit-content;
    min-width: 36px;
    max-width: 75%;
    margin-left: auto;
    margin-right: 1.5rem;
    position: sticky;
    bottom: 15px;
    padding: 2px 2px 2px 2px;
    z-index: 800;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.backToTop:hover {
    transform: scale(1.2);
}


.home-button {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    box-sizing: border-box;
    width: 5rem;
    height: 5rem;
    padding: 0.5rem;
    border-radius: 50%;
    text-align: center;
    background-color: #ffffffaa;
    backdrop-filter: blur(4px);
    line-height: 1.2;
    white-space: normal;
}

.home-button img {
    box-shadow: 4px 4px 10px 2px rgba(255, 355, 255, 0.1);
}

.seeAll {
    display: flex;
    flex-direction: row;
    padding: 15px 0 15px 0;
    font-size: 1.5rem;
    width: 80%;
}

.seeAll img {
    margin: 10px;
    width: 60px;
    height: auto;
}

.in-content:has(.seeAll) {
    background-color: #a3dada99;
    display: flex;
    justify-content: center;
    align-items: center;
}

.RSS-logo {
    width: 75px;
}

.eo-about {
    font-size: 0.82rem;
}

.footer-mul-logos {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    padding: 5px auto 5px 0;
    margin: 20px auto 25px 0;
    flex-wrap: wrap;
    text-shadow: 0 0 0.2em var(--muted);
}

.footer-logo-img {
    width: auto;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 0.2em var(--muted));
}

.footer-logo-img-eo {
    width: auto;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 0.2em var(--muted));
}

.footer-mul-logos .logo-text {
    margin: 0;
    line-height: 0.8;
    text-align: left;
}

.footer-mul-logos .logo-text-eo {
    margin: 0;
    padding: 0;
    line-height: 0.588;
    text-align: center;
}

.footer-mul-logos .logo-zh,
.footer-mul-logos .logo-ja {
    font-family: sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
}

.footer-mul-logos .logo-en-eo {
    font-family: sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
}

.footer-mul-logos .logo-en-eo-s {
    font-family: sans-serif;
    font-weight: 500;
    font-size: 0.84rem;
}

.footer-mul-logos .logo-zh-eo,
.footer-mul-logos .logo-ja-eo {
    font-family: sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
}

.footer-mul-logos .logo-en {
    font-family: sans-serif;
    font-size: 1.38rem;
    font-weight: 500;
}

.footer-mul-logos .logo-link,
.footer-mul-logos .logo-link:hover,
.footer-mul-logos .logo-link:focus-visible {
    display: inline-block;
    padding: 0;
    color: inherit;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.news-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    margin: 1rem 0;
}

.news-month-picker {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.news-month-toggle {
    box-sizing: border-box;
    max-width: 100%;
    gap: 0.65rem;
    margin: 2px 5px 5px 0;
    white-space: normal;
}

.news-month-toggle::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15rem) rotate(45deg);
    transition: transform 0.2s ease;
}

.news-month-toggle[aria-expanded="true"]::after {
    transform: translateY(0.1rem) rotate(225deg);
}

.news-current-month-button {
    margin: 0 0 0 0.25rem;
}

.news-current-month-button[hidden] {
    display: none;
}

.news-month-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.75rem;

    max-height: 20rem;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;

    transition:
        max-height 0.3s ease,
        opacity 0.2s ease,
        transform 0.3s ease,
        visibility 0s;
}

.news-month-menu[hidden] {
    display: flex;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-0.5rem);
    visibility: hidden;
    pointer-events: none;

    transition:
        max-height 0.3s ease,
        margin-top 0.3s ease,
        opacity 0.2s ease,
        transform 0.3s ease,
        visibility 0s 0.3s;
}

.news-month-menu label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-month-menu .news-month-select {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    height: calc(1.4em + 0.9rem + 4px);
    padding-right: 2rem;
    border-radius: 999px;
    background-color: var(--bg);
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 0.8rem) 50%,
        calc(100% - 0.55rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.3rem 0.3rem;
    line-height: 1.4;
}

.news-month-menu {
    padding: 15px;
}

.news-month-menu .a-button {
    box-sizing: border-box;
    width: 8rem;
    margin: 0px 0px 15px 0px;
    border-radius: 999px;
    font-family: sans-serif;
}

.news-month-menu .news-month-select:hover,
.news-month-menu .news-month-select:focus-visible {
    background-color: var(--light);
}

.news-pagination {
    max-width: 75%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem auto;
    width: fit-content;
    position: sticky;
    bottom: 25px;
    padding: 5px;
    z-index: 800;
    border-radius: 999px;
    background: #ffffffaa;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.news-pagination:hover {
    transform: scale(1.1);
}

.news-pagination[hidden] {
    display: none;
    transition: all 0.3s ease;
}

.news-pagination .news-page-button {
    min-width: 36px;
    margin: 0;
    padding: 2px 2px 2px 2px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.news-pagination .news-page-button:hover {
    transform: scale(1.1);
}

.news-pagination .news-page-ellipsis {
    min-width: 1.5rem;
    text-align: center;
}

.news-pagination .news-page-button:disabled {
    visibility: hidden;
    transition: all 0.3s ease;
}

.topic-link:active,
.topic-link:visited,
.topic-link {
    display: inline-block;
    color: var(--text);
    transition: all 0.2s ease;
}

.topic-link:hover {
    transform: translateY(1px);
    opacity: 0.8;
}

.news-article-link {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.article-news-item {
    padding-top: 0;
    border-bottom: 0;
}

.article-news-title {
    margin: 0.5rem 0;
    font-size: 1.4rem;
}

.footer-logo-div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0px;
    padding: 3px;
}

[data-latest-news-list],
[data-news-list] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
}

[data-latest-news-list]>.news-status,
[data-news-list]>.news-status {
    grid-column: 1 / -1;
}

[data-latest-news-list]>.news-item:nth-last-child(-n + 2):nth-child(odd),
[data-latest-news-list]>.news-item:last-child,
[data-news-list]>.news-item:nth-last-child(-n + 2):nth-child(odd),
[data-news-list]>.news-item:last-child {
    border-bottom: 0;
}

@media (max-width: 720px) {

    .logo-text:has(.eo-en) {
        line-height: 1;
    }

    .eo-en {
        font-size: 1.25rem;
    }

    .eo-zh,
    .eo-ja {
        font-size: 0.8rem;
    }

    [data-latest-news-list],
    [data-news-list] {
        display: block;
    }

    [data-latest-news-list]>.news-item:nth-last-child(-n + 2):nth-child(odd):not(:last-child),
    [data-news-list]>.news-item:nth-last-child(-n + 2):nth-child(odd):not(:last-child) {
        border-bottom: 1px solid var(--light);
    }

    [data-latest-news-list]>.news-item:last-child,
    [data-news-list]>.news-item:last-child {
        border-bottom: 0;
    }

    .home-button {
        right: 1rem;
        bottom: 1rem;
        width: 4.5rem;
        height: 4.5rem;
    }

    .footer-mul-logos {
        gap: 25px;
        margin: 10px 0px 16px 0;
    }

    .footer-logo-img-eo {
        height: 50px;
    }

    .footer-logo-img {
        height: 50px;
    }

    .footer-mul-logos .logo-text {
        margin: 0;
        line-height: 0.8;
        text-align: left;
    }

    .footer-mul-logos .logo-text-eo {
        margin: 0;
        padding: 0;
        line-height: 0.6;
        text-align: center;
    }

    .footer-mul-logos .logo-en {
        font-size: 1.25rem;
    }

    .footer-mul-logos .logo-zh,
    .footer-mul-logos .logo-ja {
        font-size: 0.675rem;
    }

    .footer-mul-logos .logo-en-eo {
        font-size: 1.63rem;
    }

    .footer-mul-logos .logo-en-eo-s {
        font-size: 0.75rem;
    }

    .footer-mul-logos .logo-zh-eo,
    .footer-mul-logos .logo-ja-eo {
        font-size: 0.65rem;
    }



    footer p {
        font-size: 85%;
    }

    .seeAll {
        padding: 10px 0 10px 0;
        font-size: 1.2rem;
        width: 90%;
    }

    .seeAll img {
        width: 45px;
    }

    .news-month-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-month-menu .news-month-select {
        height: calc(1.4em + 0.7rem + 4px);
    }

    .news-pagination .news-page-button {
        min-width: 33px;
        padding: 2px 2px 2px 2px;
        font-size: 0.9rem;
    }

    .backToTop {
        min-width: 33px;
        padding: 2px 2px 2px 2px;
        font-size: 0.9rem;
    }


    .news-pagination {
        max-width: 80%;
        gap: 0.2rem;
        margin: 1rem auto;
        bottom: 10px;
        padding: 3px;
        border-radius: 999px;
        background: #ffffff66;
        backdrop-filter: blur(2px);
    }

}