.popup-link,
.window-link{
    font-weight: 700;
    text-decoration: underline;

}

.popup-link {
    cursor: help;
}
.window-link {
    cursor: pointer;
}

.popup-link:hover,
.window-link:hover{
    color: #2563eb;
}

.tippy-box[data-theme~='wiki'] {
    background: white;
    color: inherit;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    box-shadow:
            0 10px 15px -3px rgb(0 0 0 / 0.1),
            0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* this is to preserve the popup text from inheriting boldness */
.tippy-box .popup-content {
    font-weight: 400;
}

/* ----------------------- */

#preview-window {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

#preview-window.is-open {
    display: block;
}

.preview-window-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.preview-window-container {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1rem;
}

.preview-window-panel {
    position: relative;

    width: 100%;
    max-width: 800px;

    /* Don't let the window become taller than the screen */
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: white;
    border-radius: 12px;

    box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.preview-window-content {
    overflow-y: auto;

    padding: 2rem;

    /* Important for flexbox scrolling */
    min-height: 0;
}

.preview-window-panel {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-window-content {
    overflow-y: auto;
    min-height: 0;
}

.preview-window-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;

    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;

    background: #f3f4f6;
    color: #374151;

    font-size: 20px;
    cursor: pointer;
}