/* ==========================================================================
   Support entry points + first-time explanation modal (COP-300).
   New file, loaded by GUI/support-link.jspf.
   COP-300 SS2.3: NON piu' un overlay fisso (copriva l'angolo in alto a destra
   di ogni pagina). E' il primo elemento del body (vedi i siti di include) e
   sticky: riserva il suo spazio nel flusso invece di sovrapporsi a quello che
   la pagina ha gia' li'.
   ========================================================================== */

#supportLinks
{
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    padding: .4rem .6rem;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

#supportLinks button
{
    cursor: pointer;
    font-size: 90%;
    white-space: nowrap;
    min-height: 44px;
}

/* COP-300 SS2.3: pulsante vero (era un link nero su bianco senza padding), stile
   secondario/outline con bersaglio touch di almeno 44px (C12). */
.supportHowBtn
{
    background: #fff;
    border: 1px solid #adb5bd;
    border-radius: .25rem;
    color: #495057;
    font-weight: 600;
    padding: .35rem .6rem;
}

.supportHowBtn:hover { background: #f1f3f5; }

/* Anteprima dei due pulsanti veri, clonati dal vivo all'apertura (support-link.js). */
#supportIntroButtons { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.supportIntroButtonItem { display: flex; flex-direction: column; align-items: center; gap: .35rem;
    max-width: 9rem; text-align: center; }
.supportIntroButtonItem button { cursor: default; }
.supportIntroButtonCaption { font-size: .78rem; color: #666; line-height: 1.3; }
#supportIntroBody ul .fas { margin-right: .35rem; color: orange; }

#supportIntroModal
{
    width: 32rem;
    margin: auto; /* centered even when the page resets margins: the native <dialog> centres only with margin:auto */
    position: fixed;
    inset: 0;
    height: fit-content;
    max-height: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    padding: 0;
    border: none;
    border-radius: .25rem;
    box-shadow: var(--shadow3);
}

#supportIntroHeader
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: orange;
    color: white;
}

#supportIntroTitle
{
    font-size: 110%;
    font-weight: bold;
}

#supportIntroXButton
{
    cursor: pointer;
    color: white;
    background-color: orange;
    border: none;
    border-radius: .125rem;
    padding: .125rem .375rem;
}

#supportIntroXButton:hover
{
    color: orange;
    background-color: white;
}

#supportIntroBody
{
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

#supportIntroBody p
{
    margin-bottom: .75rem;
}

#supportIntroBody ul
{
    padding-left: 1.25rem;
}

#supportIntroBody li
{
    margin-bottom: .5rem;
}

#supportIntroFooter
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-top: 1px solid lightgray;
}

#supportIntroDismissLabel
{
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
}

#supportIntroDismissLabel input
{
    cursor: pointer;
}

#supportIntroCloseButton
{
    cursor: pointer;
}
