#tc-tournois-menu {
    position: fixed;
    z-index: 9990;
    right: max(.75rem, env(safe-area-inset-right));
    top: 50%;
    color: #172631;
    font: 600 1rem/1.4 system-ui, sans-serif;
    text-align: left;
}
#tc-tournois-menu summary {
    display: flex;
    align-items: center;
    gap: .55em;
    min-height: 44px;
    box-sizing: border-box;
    width: max-content;
    padding: .6em .95em;
    margin-left: auto;
    border: 1px solid #fff;
    border-radius: .5em;
    background: #243e4a;
    color: #fff;
    box-shadow: 0 2px 7px #0003;
    cursor: pointer;
    list-style: none;
}
#tc-tournois-menu summary::-webkit-details-marker { display: none; }
#tc-tournois-menu summary::after { content: ''; border: solid currentColor; border-width: 0 2px 2px 0; padding: .18em; transform: rotate(45deg); }
#tc-tournois-menu[open] summary::after { transform: rotate(225deg); }
#tc-tournois-menu nav {
    position: absolute;
    top: calc(100% + .35rem);
    right: 0;
    width: max-content;
    max-width: calc(100vw - 2rem);
    max-height: 35vh;
    overflow-y: auto;
    padding: .3rem;
    border: 1px solid #bcc9ce;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 4px 16px #0003;
}
#tc-tournois-menu nav a { display: block; padding: .7em; border-radius: .25rem; color: #193746; text-decoration: none; }
#tc-tournois-menu nav a:hover, #tc-tournois-menu nav a:focus { background: #e7f0f3; text-decoration: underline; }
#tc-tournois-menu :focus-visible { outline: 3px solid #cf7514; outline-offset: 1px; }
@media (max-width: 700px), (max-height: 500px) {
    #tc-tournois-menu { top: auto; bottom: max(.75rem, env(safe-area-inset-bottom)); }
    #tc-tournois-menu nav { top: auto; bottom: calc(100% + .35rem); max-height: 65vh; }
}
@media print { #tc-tournois-menu { display: none; } }
