/* Scalar e Swagger: font serviti dal deploy e footer di Edutech (footer.js). Nessuna risorsa esterna */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("font/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("font/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("font/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

/* Swagger: indice delle chiamate chiuso sotto il suo titolo (swagger.js) */
.swagger-ui .indice-chiamate > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    margin: 10px 0;
    cursor: pointer;
}

.swagger-ui .indice-chiamate > summary::-webkit-details-marker {
    display: none;
}

.swagger-ui .indice-chiamate > summary h1 {
    margin: 0;
}

.swagger-ui .indice-chiamate > summary .freccia {
    flex: none;
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.swagger-ui .indice-chiamate[open] > summary .freccia {
    transform: rotate(180deg);
}

/* Lo spazio sotto la descrizione: margine del blocco del titolo e margine interno del blocco "Servers" */
.swagger-ui .information-container .info {
    margin-bottom: 10px;
}

.swagger-ui .information-container .info .renderedMarkdown > :last-child,
.swagger-ui .indice-chiamate > :last-child {
    margin-bottom: 0;
}

.swagger-ui .scheme-container {
    padding-top: 15px;
}

/* Swagger: link alla pagina di monitoraggio, a destra nella barra in alto (swagger.js) */
.swagger-ui .topbar-wrapper .collegamento-monitoraggio {
    flex: none;
    margin-left: 16px;
    padding: 6px 14px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-family: sans-serif;
    font-weight: 700;
    text-decoration: none;
}

/* Stesso footer dell'LMS, senza "powered by" */
#footer-edutech {
    position: relative;
    z-index: 1;
    padding: 24px 16px;
    background: #f2eeea;
    color: #000;
    font: 15px/1.5 "Inter", system-ui, -apple-system, sans-serif;
    text-align: center;
}

#footer-edutech a {
    color: inherit;
    text-decoration: none;
}

#footer-edutech a:hover {
    text-decoration: underline;
}

#footer-edutech svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
}
