html {
    overflow-x: clip;
}
body {
    font-family: "Noto Sans TC", system-ui, sans-serif;
    overflow-x: clip;
}
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease-out,
        visibility 0.25s;
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Native input/select reset */
.as-input::placeholder {
    color: #9ca3af;
}
/* .as-select \u898f\u5247\u5c0f\u7ba1\u5728 resources/css/frontend/app.css \u7684 @layer components \u4e2d\uff0c
   \u78ba\u4fdd cascade \u9806\u5e8f\u6b63\u78ba\uff0c\u8b93 rounded-full / bg-white \u7b49 utility \u80fd\u6b63\u78ba\u751f\u6548\u3002 */

/* Custom radio (overlay on native input) */
.as-rd-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.as-rd-box {
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}
.as-rd-box::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #0016a2;
    transform: scale(0);
    transition: transform 0.15s ease;
}
.as-rd-native:checked + .as-rd-box {
    border-color: #0016a2;
}
.as-rd-native:checked + .as-rd-box::after {
    transform: scale(1);
}
.as-rd-native:focus-visible + .as-rd-box {
    box-shadow: 0 0 0 3px rgba(0, 22, 162, 0.18);
}

/* Searchable combobox（卷數 / 期數 大量選項用） */
.combobox-trigger:disabled .combobox-chevron {
    color: #d1d5db;
}
.combobox-trigger[aria-expanded="true"] .combobox-chevron {
    transform: rotate(180deg);
}
.combobox-trigger {
    transition: box-shadow 0.15s ease;
}
