/* Le règlement, les tableaux et les cartes de parcours utilisent les composants WLS de wls.css. */
.tournoi-vues{display:block;min-width:0}
.tournoi-vues .wtable{max-width:100%}
.tournoi-vues .lb :is(td,th){padding:.5rem .75rem;border-color:currentColor;border-bottom-color:var(--bd);font-size:inherit;text-align:center}
.tournoi-vues .lb th{font-weight:700;color:#fff}
.tournoi-vues .lb .a{text-align:right}.tournoi-vues .lb .left{text-align:left}
.tournoi-vues .lb .s{padding-inline:1rem}
.tournoi-vues .lb :is(tr:focus-within,tr.mine-r){box-shadow:inset 3px 0 var(--ev);background:color-mix(in srgb,var(--ev) 9%,transparent)}
.tournoi-vues .lb tr:focus-within{outline:1px solid var(--ev);outline-offset:-1px}
.tournoi-vues .lb .st .status.long{white-space:normal}
.tournoi-vues .lb .st .status:before{flex-shrink:0}
.tournoi-vues .mt td.n{overflow-wrap:anywhere;white-space:normal}
.tournoi-vues .mt .tc{justify-content:center}
.tournoi-vues .mt .tc .who.tbd{color:var(--muted)}
.tournoi-vues .mt .tc>.who:where(:has(>.pl:nth-of-type(2):last-of-type)){
  display:grid;
  width:min(100%,232px);
  grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr);
  gap:4px;
  text-align:left;
}
.tournoi-vues .mt .tc>.who:has(>.pl:nth-of-type(2):last-of-type)>.sep{text-align:center}
.tournoi-vues .tc .cup-player,.tournoi-vues .duo .pl{flex-shrink:1;min-width:0}
.tournoi-vues .tc .cup-player{font-weight:400}
.tournoi-vues .tc .cup-player .av{width:26px;height:26px}
.tournoi-vues .mt .mobile-match-state{display:none}
.tournoi-vues .mt .status{max-width:100%;white-space:normal}
.tournoi-vues .mt .status::before{flex:none}
.tournoi-vues .seg button{white-space:nowrap}
#teams-view .tools{flex-wrap:wrap;min-width:0;max-width:100%}
.tournoi-vues .tc.f1 .cup-player .av{width:16px;height:16px}.tournoi-vues .tc.f2 .cup-player .av{width:14px;height:14px}
.tournoi-vues .tc:has(.pl:nth-of-type(3)) .who{flex-wrap:wrap;justify-content:center}
.tournoi-vues .duo.multi-duo{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:6px}
.tournoi-vues .mg-head h3{font-size:1.1rem;font-weight:500;line-height:1.5}
.tournoi-vues .toolbar p,.tournoi-vues .rtoc p,.tournoi-parcours p{line-height:1.5}
#cup-app .tournoi-vues .lbs :is(input,select){border:1px solid #818181;border-radius:0;height:32px;background-color:#0c0c0c;color:#fff}
#cup-app .tournoi-vues .lbs input{width:250px;padding:0 10px;line-height:1.5}
#cup-app .tournoi-vues .lbs select{padding:0 26px 0 10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23fff'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat;background-size:9px}
#cup-app .tournoi-vues .lbs :is(input,select):is(:hover,:focus-visible){border-color:var(--ev)}
.tournoi-parcours{--modal-width:500px}
.tournoi-parcours .mem-t b{min-width:0;overflow-wrap:anywhere}
.parcours-body{text-align:center}
.parcours-body>*{min-width:0}
.tournoi-parcours .mem{width:160px;max-width:100%;border:1px solid #4a4548}
.tournoi-parcours .mem-t .crown-i{width:14px;height:14px;color:var(--gold)}
.tournoi-parcours .row .who{max-width:100%}
.tournoi-vues .rule h3{margin-bottom:.5rem;font-size:1rem;font-weight:500;line-height:1.5}
.tournoi-vues .rule>h3>strong{font-weight:inherit;overflow-wrap:anywhere}
.tournoi-vues .rule p{line-height:1.6}
.rule-copy{margin-inline-start:38px}
.rule-copy .cup-markdown{overflow-x:auto}
.rule-copy .cup-markdown p{padding:0}
.rule-copy .cup-markdown h3{display:block}
.rule-copy .cup-markdown ul{padding-inline-start:1.4em}
.rule-copy .cup-markdown li::before{content:none}
.rfacts div,.rtoc button span{overflow-wrap:anywhere}
#cup-app .rule-map{display:inline-flex;align-items:center;gap:6px;color:var(--ev)}
.rule-map .icon{width:14px;height:14px}
.rulebook-actions{display:flex;justify-content:flex-end;margin-bottom:16px}
.rulebook-workspace{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);align-items:start;gap:16px}
.rulebook-editor,.rulebook-preview{min-width:0;padding:16px;border:1px solid var(--bd);background:#0c0c0c}
.rulebook-editor h2,.rulebook-preview>h2{font-size:16px;font-weight:600}
.rulebook-preview>h2{margin-bottom:12px;scroll-margin-top:68px}
.rulebook-preview .rules{display:block}
.rulebook-preview .rbody{min-width:0;border-left:0}
.rulebook-preview .rfacts{grid-template-columns:minmax(0,1fr);margin-bottom:0}
#cup-app .rulebook-editor :is(input:not([type=checkbox]),select,textarea){width:100%;font-size:14px}
#cup-app .rulebook-editor>p{margin:0}
.rulebook-help{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:12px}
.rulebook-editor .cup-actions{justify-content:flex-end}
#cup-app .rulebook-settings{color:var(--soft);font-size:13px;text-decoration:underline;text-underline-offset:.2em}
#cup-app .rulebook-preview-jump.cup-secondary{display:none}
@container page (max-width:900px){
  .rulebook-workspace{grid-template-columns:minmax(0,1fr)}
  #cup-app .rulebook-preview-jump.cup-secondary{display:inline-flex}
}
@container page (max-width:1040px){
  .tournoi-vues .toolbar,#matches-view .tools{flex-wrap:wrap}
  .tournoi-vues .mt th:nth-child(1){width:106px}
  .tournoi-vues .mt th:nth-child(3){width:68px}
  .tournoi-vues .mt th:nth-child(5){width:68px}
  .tournoi-vues .mt th:nth-child(6){width:116px}
  .tournoi-vues .mt .tc>.who:not(.tbd){
    display:grid;
    width:min(100%,144px);
    grid-template-columns:minmax(0,1fr);
    gap:3px;
    text-align:left;
  }
  .tournoi-vues .mt .tc .cup-player{gap:4px}
  .tournoi-vues .mt .tc .cup-player .av{width:20px;height:20px}
  .tournoi-vues .mt .tc .cup-player .flag{width:13px}
  .tournoi-vues .mt .tc .who>.sep{display:none}
  .tournoi-vues .mt .tc .who b{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
@container page (max-width:700px){
  #cup-app .tournoi-vues .lbs input{width:auto;flex:1}
  .rule-copy{margin-inline-start:0}
  .tournoi-vues .lb{font-size:13px}
  .tournoi-vues .mt .match-state-column{display:none}
  .tournoi-vues .mt th:nth-child(3){width:clamp(70px,22cqi,98px)}
  .tournoi-vues .mt .s a{display:grid;place-items:center;min-height:26px}
  .tournoi-vues .mt .mobile-match-state{display:block;font-size:10px;line-height:1.3}
  .tournoi-vues .mt .mobile-match-state::before{display:none}
  .tournoi-vues .rule .lb{font-size:13.5px}
  .tournoi-vues .rtoc{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 8px;border-bottom:1px solid var(--bd)}
  .tournoi-vues .rtoc p{grid-column:1/-1;padding-inline:8px}
  .tournoi-vues .rtoc button{align-items:baseline;text-align:left;padding:6px 8px;line-height:1.4}
  .tournoi-vues .lb :is(td,th){padding:.45rem .5rem}
  .tournoi-vues .lb .s{padding-inline:.5rem}
  #teams-view .lb{table-layout:fixed}
  #teams-view .lb .n{width:32px}
  #teams-view .lb .st{width:37%;white-space:normal}
  #teams-view .lb .st .status{white-space:normal}
  #teams-view .lb .st .status::before{align-self:flex-start;margin-top:.5em}
  #teams-view .duo,#teams-view .duo.multi-duo{display:inline-grid;width:min(100%,144px);grid-template-columns:minmax(0,1fr);gap:2px}
  #teams-view .duo .pl{justify-content:flex-start;gap:4px}
  #teams-view .duo .pl b{white-space:normal;overflow-wrap:anywhere}
  #teams-view .duo>i{display:none}
  .tournoi-parcours .row{padding-right:10px}
  .tournoi-parcours .score{min-width:34px;margin-right:-10px}
}
@container page (max-width:480px){
  #cup-app .tournoi-vues .lbs{display:grid;grid-template-columns:minmax(0,1fr) 32px;height:auto;gap:4px 0}
  #cup-app .tournoi-vues .lbs select{grid-column:1/-1}
  #cup-app .tournoi-vues .lbs :is(input,select,button){width:100%;min-width:0;height:32px;margin:0}
}
@container page (max-width:380px){
  #cup-app .tournoi-vues .lbs input::placeholder{font-size:12px}
}
