/* =====================================================================
   global.css — site-wide shared styles (gp- prefixed)
   ---------------------------------------------------------------------
   Part of the incremental split of the site.css monolith.
   Holds global styles used across multiple pages. By convention these
   are the gp- prefixed classes/styles.

   Loaded after site.css but before the theme files, mirroring the
   cascade slot these rules held while inside site.css.

   Populated incrementally: when working on a page, move that page's
   gp- prefixed global styles out of site.css into here. A non-gp style
   used on more than one page must be raised with the user before moving.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Modal overlay + dialog — shared, reusable (Session 162).
   Modelled on the existing #force-logout-overlay/#force-logout-dialog,
   which could later be migrated onto these classes.
   --------------------------------------------------------------------- */
.gp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.gp-modal {
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    padding: 1.5rem 1.75rem;
    max-width: 28rem;
    width: 100%;
}

.gp-modal h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.gp-modal-sub {
    color: var(--ink-3);
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.gp-modal textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 0.5em 0.625em;
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    background: var(--bg-2);
    color: var(--ink);
    font: inherit;
}

.gp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
