.ivsg-guides {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ivsg-guides__link {
    appearance: none;
    background: transparent;
    border: 0;
    color: #111111;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ivsg-guides__link:hover,
.ivsg-guides__link:focus-visible {
    color: #444444;
}

.ivsg-modal {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 999999;
}

.ivsg-modal.is-open {
    display: block;
}

.ivsg-modal__backdrop {
    background: rgba(0, 0, 0, 0.74);
    inset: 0;
    position: absolute;
}

.ivsg-modal__dialog {
    inset: 50% auto auto 50%;
    max-height: min(88vh, 1200px);
    max-width: min(92vw, 1400px);
    position: absolute;
    transform: translate(-50%, -50%);
    width: auto;
}

.ivsg-modal__content {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    overflow: auto;
    padding: 18px;
}

.ivsg-modal__image {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: calc(88vh - 36px);
    max-width: min(88vw, 1360px);
    width: auto;
}

.ivsg-modal__close {
    appearance: none;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: #111111;
    cursor: pointer;
    font-size: 30px;
    height: 44px;
    line-height: 1;
    position: absolute;
    right: -14px;
    top: -14px;
    width: 44px;
}

.ivsg-modal__content--table {
    max-height: 88vh;
    max-width: min(92vw, 1040px);
    padding: 42px 28px 28px;
}

.ivsg-modal__headline {
    color: #111111;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.ivsg-modal__intro {
    color: #444444;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 72ch;
}

.ivsg-modal__figure {
    margin: 0 0 18px;
}

.ivsg-modal__figure-image {
    display: block;
    height: auto;
    margin: 0;
    max-width: min(100%, 340px);
}

.ivsg-table-wrap {
    overflow-x: auto;
}

.ivsg-table {
    border-collapse: collapse;
    color: #111111;
    min-width: 680px;
    width: 100%;
}

.ivsg-table thead th {
    border-bottom: 1px solid #d8d8d8;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 14px;
    text-align: left;
    vertical-align: bottom;
}

.ivsg-table tbody th,
.ivsg-table tbody td {
    border-bottom: 1px solid #ececec;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 12px 14px;
    text-align: left;
}

.ivsg-table tbody th {
    font-weight: 600;
    white-space: nowrap;
}

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

@media (max-width: 767px) {
    .ivsg-guides {
        gap: 12px 16px;
    }

    .ivsg-modal__dialog {
        max-width: 94vw;
    }

    .ivsg-modal__content {
        border-radius: 12px;
        padding: 12px;
    }

    .ivsg-modal__content--table {
        padding: 34px 14px 16px;
    }

    .ivsg-modal__image {
        max-height: calc(84vh - 24px);
        max-width: 88vw;
    }

    .ivsg-modal__close {
        right: -6px;
        top: -12px;
    }

    .ivsg-table {
        min-width: 560px;
    }
}
