.ysdr-board {
    font-family: "Noto Sans TC", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #1d1d1b;
}

.ysdr-board .ysdr-intro {
    margin: 0 0 20px;
    line-height: 28px;
}

.ysdr-board .ysdr-group {
    display: flex;
    flex-direction: column;
    margin: 0 0 30px;
    padding: 0;
}

.ysdr-board .ysdr-group-title {
    margin: 0 0 27.2px;
    padding: 0;
    color: #0f4e3f;
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
}

.ysdr-board .ysdr-group--independent .ysdr-group-title::before {
    display: block;
    height: 36px;
    content: "";
}

.ysdr-board .ysdr-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    padding: 0;
}

.ysdr-board .ysdr-card {
    box-sizing: border-box;
    width: 33.333333%;
    max-width: 33.333333%;
    margin: 0;
    padding: 10px;
}

.ysdr-board button.ysdr-trigger {
    all: unset;
    display: block;
    box-sizing: border-box;
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ysdr-board button.ysdr-trigger:focus-visible {
    outline: 2px solid #0f4e3f;
    outline-offset: 4px;
}

.ysdr-board .ysdr-photo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.ysdr-board .ysdr-name {
    display: block;
    margin: 10px 0;
    padding: 0;
    color: #0f4e3f;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
}

.ysdr-board .ysdr-position {
    display: block;
    margin: 0;
    padding: 0;
    color: #071c17;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
}

.ysdr-modal[hidden] {
    display: none !important;
}

.ysdr-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1d1d1b;
}

.ysdr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 220ms ease;
}

.ysdr-dialog {
    position: relative;
    box-sizing: border-box;
    width: 800px;
    max-width: calc(100% - 40px);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 4px rgba(15, 78, 63, 0.14);
    outline: none;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.ysdr-modal.ysdr-is-visible .ysdr-backdrop,
.ysdr-modal.ysdr-is-visible .ysdr-dialog {
    opacity: 1;
}

.ysdr-modal.ysdr-is-visible .ysdr-dialog {
    transform: none;
}

.ysdr-modal button.ysdr-close {
    all: unset;
    position: sticky;
    z-index: 2;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    margin: 0 0 -32px auto;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.ysdr-modal button.ysdr-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.ysdr-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ysdr-modal-layout {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    padding: 30px 30px 30px 20px;
}

.ysdr-modal-photo {
    box-sizing: border-box;
    flex: 0 0 30%;
    width: 30%;
    margin: 0;
    padding: 0;
}

.ysdr-modal-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.ysdr-modal-copy {
    box-sizing: border-box;
    flex: 0 0 70%;
    width: 70%;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 20px;
}

.ysdr-modal-name {
    display: table;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 0 0 15px;
    background-image: url("divider.webp");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: contain;
    color: #1d1d1b;
    font-family: inherit;
    font-size: 26px;
    font-weight: 500;
    line-height: 26px;
}

.ysdr-modal-position {
    margin: 15px 0 20px;
    padding: 0;
    color: #1e7254;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
}

.ysdr-modal-bio {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    overflow-wrap: anywhere;
}

.ysdr-modal-bio p {
    margin: 0 0 12px;
    padding: 0;
}

.ysdr-modal-bio p:last-child {
    margin-bottom: 16px;
}

body.ysdr-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .ysdr-backdrop,
    .ysdr-dialog {
        transition: none;
    }

    .ysdr-dialog {
        transform: none;
    }
}

@media (max-width: 999px) {
    .ysdr-dialog {
        width: 90%;
        max-width: 90%;
        height: 80vh;
        height: 80dvh;
        max-height: 80vh;
        max-height: 80dvh;
    }
}

@media (max-width: 767px) {
    .ysdr-board .ysdr-card {
        width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 689.98px) {
    .ysdr-board .ysdr-group-title {
        margin-top: 10px;
    }
}

@media (max-width: 678px) {
    .ysdr-modal-layout {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
    }

    .ysdr-modal-photo {
        flex: none;
        width: 70%;
        margin-bottom: 20px;
    }

    .ysdr-modal-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: none;
        width: 100%;
        padding: 0;
    }

    .ysdr-modal-name,
    .ysdr-modal-position {
        text-align: center;
    }

    .ysdr-modal-bio {
        width: 100%;
        font-size: 14px;
        line-height: 21px;
    }

    .ysdr-modal-bio p,
    .ysdr-modal-bio span {
        font-size: inherit !important;
    }
}
