.tour-image {
    min-height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    box-shadow: inset 0 0 0 2000px rgba(41, 41, 41, 0.3);
}


#clans-logo{
    height:250px;
    width:auto;
    -webkit-filter: drop-shadow( 10px 10px 2px rgba(0, 0, 0, .7));
    filter: drop-shadow( 10px 10px 2px rgba(0, 0, 0, .7));
}

#events-container,
#past-events-container,
#standings-container{
    min-height:300px;
}



.display-select-item{
    min-width:32px;
}

.display-select-item.active{
    color: var(--sgt-red);
}


.display-select-item{
    border-bottom: 2px solid transparent;
}

.display-select-item.active{
    border-bottom: 2px solid var(--sgt-red);
}

.net-gross-select{
    font-size:10px;
}

.net-gross-select.active{
    text-decoration: underline;
    font-size:14px;
}

.hide-net-gross{
    visibility: hidden;
}


#tour-data-container{
    overflow-x:auto;
}



.standings-table tbody tr.odd {
    background-color: var(--sgt-md-gray);
}


.standings-table tbody tr.odd .position {
    border-right:1px solid var(--sgt-dark-gray);
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}


.standings-table tbody tr.odd .points {
    border-left:1px solid var(--sgt-dark-gray);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}


.standings-table tbody tr.even .position {
    border-right:1px solid var(--sgt-md-gray);
}


.standings-table tbody tr.even .points {
    border-left:1px solid var(--sgt-md-gray);
}

.expand-cell{
    width:99%;
}

tr.current-player-row .player * {
    color:yellow !important;
}


.player-avatar-wrapper{
    height:32px;
    width:32px;
    margin-right:9px;
  }

  .player-avatar{
    width:32px;
    height:32px;
    border-radius:50%;
    overflow: hidden;

  }

  .player-avatar img{
    width: 100%;
    height:auto;
  }

  .player-flag{
    position: absolute;
    bottom:0;
    right:-9px;
    height:18px;
    width: 18px !important;;
    border-radius: 50%;
  }


  @media (max-width:768px){


    .standings-table{
        font-size: 60%;
    }

    .standings-table .three-quarter-font{
        font-size: 75% !important;
    }




    .player-avatar-wrapper:not(.no-shrink){
        height:24px;
        width:24px;
        margin-right:6px;
      }
    
      .player-avatar:not(.no-shrink){
        width:24px;
        height:24px;
        border-radius:50%;
        overflow: hidden;
    
      }
    
      .player-avatar:not(.no-shrink) img{
        width: 100%;
        height:auto;
      }
    
      .player-flag:not(.no-shrink){
        position: absolute;
        bottom:0;
        right:-6px;
        height:12px;
        width: 12px !important;;
        border-radius: 50%;
      }
    


}



.event-card.hide {
    display: none;
}

.event-card .card {

    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    overflow: hidden;
    height: 100%;

}

.event-card .event-image {
    height: 150px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.ldr-link {
    height: 36PX;
    width: 36PX;
    line-height: 36PX;
}


.close-stat-list{
    height: 36px;
    width: 36px;
    line-height: 36px;
    font-size:24px;
}

/* ---------- standings tab (drawn by page.js) ---------- */

.st-head{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.st-count,
.st-me{
    color: var(--sgt-light);
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
}

.st-me{
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--sgt-red);
    border-radius: 0.75rem;
}

.st-link-btn{
    background: none;
    border: 0;
    padding: 0;
    color: var(--sgt-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--sgt-red);
    letter-spacing: inherit;
    font-size: inherit;
}

.st-link-btn:hover{
    color: var(--sgt-light);
}

.st-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.st-table td,
.st-table th{
    padding: 0.85rem 0.6rem;
}

.st-table .col-pos{
    min-width: 5rem;
}

.st-table .col-toggle{
    width: 2.5rem;
}

.st-table tbody tr.st-row.has-results{
    cursor: pointer;
}

/* the chevron is the last column now, so it carries the rounded end instead of points */
.standings-table.st-table tbody tr.odd .points{
    border-radius: 0;
}

.st-table tbody tr.st-row.odd > td:last-child{
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

/* backgrounds go on the cells, not the row, so every browser clips them to the cells' rounded corners */
.st-table tbody tr.st-row.odd{
    background-color: transparent;
}

.st-table tbody tr.st-row.odd > td{
    background-color: var(--sgt-md-gray);
}

.st-table tbody tr.st-row.is-me > td{
    background-color: color-mix(in srgb, var(--sgt-red) 22%, var(--sgt-md-gray));
}

.st-table tbody tr.st-row.is-me > td.position{
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    border-right-color: var(--sgt-dark-gray);
}

.st-table tbody tr.st-row.is-me > td.points{
    border-left-color: var(--sgt-dark-gray);
}

.st-table tbody tr.st-row.is-me > td:last-child{
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.st-table tbody tr.st-row.is-open > td{
    background-color: var(--sgt-md-gray);
}

.st-table tbody tr.st-row.is-open.is-me > td{
    background-color: color-mix(in srgb, var(--sgt-red) 22%, var(--sgt-md-gray));
}

/* an open row is a card whatever its stripe: rounded on top, square where its results join on */
.st-table tbody tr.st-row.is-open > td.position{
    border-right-color: var(--sgt-dark-gray);
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 0;
}

.st-table tbody tr.st-row.is-open > td.points{
    border-left-color: var(--sgt-dark-gray);
}

.st-table tbody tr.st-row.is-open > td:last-child{
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 0;
}

.st-table tbody tr.st-row.flash{
    animation: st-flash 1.6s ease-out;
}

@keyframes st-flash{
    0%, 30% { box-shadow: inset 0 0 0 2px var(--sgt-red); }
    100% { box-shadow: inset 0 0 0 2px transparent; }
}

/* rank and movement sit in fixed slots so the ranks line up down the table, arrow or not */
.st-rank{
    display: inline-block;
    min-width: 2.6rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.st-move-slot{
    display: inline-block;
    width: 2.6rem;
    text-align: left;
}

.st-move{
    padding-left: 0.4rem;
    font-size: 0.75em;
    font-variant-numeric: tabular-nums;
}

.st-move i{
    padding-right: 0.15rem;
}

.st-up{
    color: #3fb35c;
}

.st-down{
    color: #e05252;
}

.st-move.st-new{
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--sgt-red);
    color: var(--sgt-white);
    font-size: 0.55rem;
    vertical-align: middle;
}

.st-hcp{
    padding-left: 0.5rem;
    color: var(--sgt-light);
    font-size: 0.75em;
}

.st-me-tag{
    margin-left: 0.5rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--sgt-red);
    font-size: 0.6rem;
    color: var(--sgt-white);
}

.st-table tr.st-row .points{
    font-variant-numeric: tabular-nums;
    font-weight: bold;
}

.st-expand{
    background: none;
    border: 0;
    color: var(--sgt-light);
    padding: 0.25rem 0.4rem;
    transition: transform 0.2s ease;
}

.st-row.is-open .st-expand{
    transform: rotate(180deg);
    color: var(--sgt-white);
}

/* no box after a mouse click; keyboard focus still gets a ring */
.st-expand:focus{
    outline: none;
    box-shadow: none;
}

.st-expand:focus-visible{
    outline: 1px solid var(--sgt-light);
    border-radius: 0.4rem;
}

.st-sentinel td{
    padding: 0 !important;
    height: 1px;
}

/* a player's results under their row */
.st-detail-row > td{
    background-color: var(--sgt-md-gray);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 0.25rem 1rem 1rem !important;
    cursor: default;
}

/* a grid of result tiles under the player, filling the row */
.st-detail{
    padding-top: 0.25rem;
    color: var(--sgt-white);
}

.st-results{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.5rem;
}

.st-result{
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.5rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    background: var(--sgt-dark-gray);
    color: var(--sgt-white);
    text-decoration: none;
    text-transform: uppercase;
}

.st-result:hover{
    border-color: var(--sgt-light-gray);
    color: var(--sgt-white);
}

.st-result.st-win{
    border-color: #e0a83a;
}

.st-result-date{
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    color: var(--sgt-light);
}

.st-result-name{
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-result-line{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.15rem;
}

.st-result-finish{
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.st-win .st-result-finish{
    color: #e0a83a;
}

.st-result-pts{
    font-size: 0.7rem;
    color: var(--sgt-light);
    font-variant-numeric: tabular-nums;
}

@media (max-width:768px){

    .st-head{
        justify-content: center;
    }

    .st-count,
    .st-me{
        font-size: 0.65rem;
        letter-spacing: 0.08rem;
        text-align: center;
        flex: 1 1 100%;
    }

    /* fixed layout keeps the table, and any open results, at screen width */
    .st-table{
        table-layout: fixed;
        font-size: 75%;
    }

    .st-table td,
    .st-table th{
        padding: 0.6rem 0.3rem;
    }

    .st-table .col-pos{
        min-width: 0;
        width: 3.4rem;
    }

    .st-table .col-pts{
        width: 4.4rem;
    }

    .st-table .col-toggle{
        width: 1.8rem;
    }

    .st-table td.st-toggle,
    .st-table th.col-toggle{
        padding-left: 0;
        padding-right: 0.25rem;
    }

    /* on a phone the movement drops under the rank, both centered in the column */
    .st-table .position .st-rank,
    .st-table .position .st-move-slot{
        display: block;
        min-width: 0;
        width: auto;
        text-align: center;
    }

    .st-table .position .st-move{
        padding-left: 0;
    }

    .st-table .position .st-move.st-new{
        margin-left: 0;
    }

    .st-table td.player{
        overflow: hidden;
    }

    .st-table td.player > div{
        min-width: 0;
    }

    .st-table .st-name{
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* the small flag still hangs 6px off the avatar, so leave room before the name */
    .st-table .player-avatar-wrapper:not(.no-shrink){
        margin-right: 8px;
    }

    .st-detail{
        margin-left: 0 !important;
    }

    .st-results{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .st-result{
        padding: 0.45rem 0.55rem;
    }

    .st-detail-row > td{
        padding: 0.25rem 0.6rem 0.8rem !important;
    }

}
