/* Reserve separate layout tracks for navigation and names in every appearance. */
@layer msf-header-clearance {
  html body :is(.results-header:has(>.results-title-wrap), .results-header:has(>.results-title-block), .wt-header-bar, .wtf-header-bar, .storm-header-bar, .floor-header-bar, .brk-header-bar) {
    display:grid!important;
    grid-template-columns:max-content minmax(0,1fr) max-content!important;
    align-items:center!important;
    column-gap:16px!important;
    row-gap:12px!important;
  }
  html body :is(.results-header:has(>.results-title-wrap), .results-header:has(>.results-title-block), .wt-header-bar, .wtf-header-bar, .storm-header-bar, .floor-header-bar, .brk-header-bar)>:first-child {
    position:static!important;
    transform:none!important;
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    flex-shrink:0!important;
    white-space:nowrap!important;
  }
  html body :is(.results-header:has(>.results-title-wrap), .results-header:has(>.results-title-block), .wt-header-bar, .wtf-header-bar, .storm-header-bar, .floor-header-bar, .brk-header-bar)>:nth-child(2) {
    position:static!important;
    transform:none!important;
    grid-column:2!important;
    grid-row:1!important;
    justify-self:stretch!important;
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
  }
  html body .results-title-wrap>div:has(>#resultsTeamName) {
    display:flex!important;
    min-width:0!important;
    max-width:100%!important;
    justify-content:center!important;
  }
  html body .results-team-name {
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    overflow:visible!important;
  }
  html body #defenseNoteBtn {flex:0 0 auto!important;}
  html body .results-title-block>div {white-space:normal!important;overflow-wrap:anywhere!important;}
  @media(max-width:600px) {
    html body :is(.results-header:has(>.results-title-wrap), .results-header:has(>.results-title-block), .wt-header-bar, .wtf-header-bar, .storm-header-bar, .floor-header-bar, .brk-header-bar) {
      grid-template-columns:minmax(0,1fr) auto!important;
    }
    html body :is(.results-header:has(>.results-title-wrap), .results-header:has(>.results-title-block), .wt-header-bar, .wtf-header-bar, .storm-header-bar, .floor-header-bar, .brk-header-bar)>:nth-child(2) {
      grid-column:1/-1!important;
      grid-row:2!important;
    }
    html body :is(.results-header:has(>.results-title-wrap), .results-header:has(>.results-title-block), .wt-header-bar, .wtf-header-bar, .storm-header-bar, .floor-header-bar, .brk-header-bar)>:nth-child(3) {
      grid-column:2!important;
      grid-row:1!important;
    }
  }
}
