@charset "utf-8";

/* 得獎組別橫向 slide cata：Figma 87:2295 */
.wrapper-main {
    min-width: 0;
}

.slide-cata {
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    margin-top: -1.25rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    margin-left: 50%;
    padding: 4px 6px;
    position: relative;
    z-index: 4;
    background-color: var(--primary-color);
    border-radius: 999px;
    transform: translateX(calc(-50% - 3vw));
}

.slide-cata.is-overflow {
    width: 100%;
}

@media screen and (min-width: 951px) {
    .slide-cata {
        margin-top: -4.5vw;
    }
}

@media screen and (min-width: 1280px) {
    .slide-cata {
        max-width: 64vw;
        margin-top: -6vw;
    }

    .slide-cata.is-overflow {
        width: 64vw;
    }
}

@media screen and (min-width: 1600px) {
    .slide-cata {
        max-width: 68vw;
        margin-top: -4.5vw;
    }

    .slide-cata.is-overflow {
        width: 68vw;
    }
}

@media screen and (min-width: 1920px) {
    .slide-cata {
        max-width: 1400px;
        margin-top: -4.5vw;
    }

    .slide-cata.is-overflow {
        width: 1400px;
    }
}

.slide-cata__viewport {
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slide-cata:not(.is-overflow) .slide-cata__viewport {
    flex: 0 1 auto;
    width: max-content;
    max-width: 100%;
}

.slide-cata__viewport::-webkit-scrollbar {
    display: none;
}

.slide-cata__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    margin: 0;
    list-style: none;
}

.slide-cata__list li {
    flex-shrink: 0;
}

.slide-cata__list li.is-active {
    order: -1;
}

.slide-cata__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: 999px;
    color: #ffffff;
    background-color: transparent;
    font-family: "Noto Sans CJK TC", "Noto Sans TC", sans-serif;
    font-size: clamp(0.875rem, 1.3vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.slide-cata__list li:not(.is-active) a:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

.slide-cata__list li.is-active a,
.slide-cata__list a[aria-current="page"] {
    background-color: #ffffff;
    color: var(--primary-color);
}

.slide-cata__arrow {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
}

.slide-cata.is-overflow .slide-cata__arrow {
    display: flex;
}

.slide-cata__arrow::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin-left: 2px;
}

.slide-cata__arrow--next::before {
    margin-left: 0;
    margin-right: 2px;
    transform: rotate(-135deg);
}

.slide-cata__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

/* 得獎名單表格：editstyle table */
.editstyle table {
    display: table;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 1.5em 0 0;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid var(--title-color-light);
    border-top-color: var(--title-color-dark);
    background-color: #ffffff;
    font-family: "Noto Sans CJK TC", "Noto Sans TC", sans-serif;
    font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
    color: #333333;
}

.editstyle th,
.editstyle td {
    padding: 12px 10px;
    border: 1px solid var(--title-color-light);
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.editstyle thead th,
.editstyle table:not(:has(thead)) tr:first-child th,
.editstyle table:not(:has(thead)) tr:first-child td {
    background-color: var(--title-color-dark);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.3;
    border-color: #ffffff;
    border-top-color: var(--title-color-dark);
}

.editstyle thead th:first-child,
.editstyle table:not(:has(thead)) tr:first-child th:first-child,
.editstyle table:not(:has(thead)) tr:first-child td:first-child {
    border-left-color: var(--title-color-light);
}

.editstyle thead th:last-child,
.editstyle table:not(:has(thead)) tr:first-child th:last-child,
.editstyle table:not(:has(thead)) tr:first-child td:last-child {
    border-right-color: var(--title-color-light);
}

.editstyle tbody td:first-child {
    border-left-color: var(--title-color-light);
}

.editstyle tbody td:last-child {
    border-right-color: var(--title-color-light);
}

.editstyle tbody tr:last-child td {
    border-bottom-color: var(--title-color-light);
}

.editstyle tbody td {
    background-color: #ffffff;
    color: #333333;
    font-weight: 400;
}

.editstyle table th:nth-child(1),
.editstyle table td:nth-child(1) {
    width: 12%;
}

.editstyle table th:nth-child(2),
.editstyle table td:nth-child(2) {
    width: 14%;
}

.editstyle table th:nth-child(3),
.editstyle table td:nth-child(3),
.editstyle table th:nth-child(4),
.editstyle table td:nth-child(4) {
    width: 26%;
}

.editstyle table th:nth-child(5),
.editstyle table td:nth-child(5) {
    width: 22%;
}

.editstyle:has(> table) {
    overflow-x: auto;
}

/* 檔案下載：同 news-page.html 白底橘虛線 pill */
.wrapper-btn .wrapper-file {
    padding-top: 0;
    border-top: 0;
}

.wrapper-btn a.list-file {
    display: inline-flex;
    position: relative;
    width: auto;
    max-width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 6px;
    color: var(--primary-color);
    text-decoration: none;
    overflow: visible;
    font-weight: bold;
    font-size: clamp(1rem, 3.2vw, 1.125rem);
    transition: background-color 0.3s ease-in-out;
}

.wrapper-btn .list-file__in {
    color: var(--primary-color);
    letter-spacing: clamp(0rem, 1vw, 0.08rem);
    font-family: "NotoSansTC";
    text-align: center;
    font-size: inherit;
    line-height: 1.2;
    white-space: nowrap;
    font-weight: bold;
    border-radius: 50px;
    border: 1px dashed var(--primary-color);
    padding: 8px 16px;
    width: 100%;
    gap: 0.5rem;
}

.wrapper-btn a.list-file:hover {
    background-color: var(--primary-color);
}

.wrapper-btn a.list-file:hover .list-file__in {
    color: #ffffff;
    border-color: #ffffff;
}

.wrapper-btn .list-file__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wrapper-btn .list-file__icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.wrapper-btn a.list-file:hover .list-file__icon img {
    filter: brightness(0) invert(1);
}
