/*
 * GTHOLDING - Guida in linea del gestionale (docs/ARCHITETTURA.md §18), in tutte le pagine: pannello laterale del "?"
 * (#guide-panel) e testi delle sezioni (.guide-content, HTML dal Markdown). Pagina /guide e stampa: guide-page.css.
 */

/* Pannello: più largo dell'offcanvas di Bootstrap, mai più largo dello schermo. */
.guide-panel { --bs-offcanvas-width: min(34rem, 100vw); }
/* Da tablet in su sotto la barra in alto (--guide-top lo calcola guide.js all'apertura). */
@media (min-width: 576px) {
    .guide-panel.offcanvas-end { top: var(--guide-top, 0); }
}
.guide-panel .offcanvas-header { align-items: flex-start; }
.guide-panel-footer { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; }
.guide-panel-loading { padding: .5rem 0 1rem; }

/* Testi delle sezioni. */
.guide-content { line-height: 1.6; overflow-wrap: break-word; }
.guide-content > :last-child { margin-bottom: 0; }
.guide-content h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 .6rem; }
.guide-content h4 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.guide-content > h3:first-child, .guide-content > h4:first-child { margin-top: 0; }
.guide-content ol, .guide-content ul { padding-left: 1.4rem; }
.guide-content li + li { margin-top: .25rem; }
.guide-content li > p { margin-bottom: .25rem; }
.guide-content code { color: inherit; background: var(--bs-tertiary-bg); padding: .05rem .3rem; border-radius: .25rem; }
.guide-content strong { font-weight: 600; }
.guide-content .table { margin-bottom: 1rem; }
.guide-content .table th { white-space: nowrap; }
/* Riquadri ("> **Attenzione:** …" nel Markdown). */
.guide-content .guide-note {
    margin: 1rem 0;
    padding: .65rem .9rem;
    border-left: .25rem solid var(--bs-info);
    background: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
    border-radius: .375rem;
}
.guide-content .guide-note > :last-child { margin-bottom: 0; }
