/* Basic styles for the modal */
.spec-up-t-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spec-up-t-modal {
    background-color: white;
    padding: 2rem 20px 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spec-up-t-modal-close {
    position: absolute;
    top: 0;
    right: 5px;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.spec-up-t-modal-close:focus-visible {
    outline: 2px solid #0071eb;
    outline-offset: 2px;
}

/* External-navigation modal (tref / xref links leaving the current spec) */
.tref-nav-modal .tref-nav-url {
    word-break: break-all;
    font-size: 0.85em;
    opacity: 0.75;
}

.tref-nav-modal .tref-nav-notice {
    font-style: italic;
    font-size: 0.9em;
}

.tref-nav-modal .tref-nav-countdown {
    font-weight: bold;
    font-style: normal;
}

.tref-nav-modal .tref-nav-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}