/* R21: keep public refinements scoped below the earlier presentation layers. */

.r13-brand.r21-brand{color:#c8f060;line-height:1.12}
.r13-gate-brand .r21-brand{font-size:clamp(21px,6vw,27px)}

/* Both Home destinations occupy the same row and have the same geometry. */
#app .r21-home-destinations{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:8px;
    margin:12px 16px 8px;
}
#app .r21-home-destinations .r21-home-destination{
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    width:100%;
    min-width:0;
    min-height:82px;
    margin:0;
    padding:13px 12px;
    border:1px solid #111827;
    border-radius:12px;
    background:#111827;
    color:#fff;
    font-family:inherit;
    text-align:left;
    box-shadow:none;
    cursor:pointer;
}
#app .r21-home-destinations .r21-analytics-entry{border-color:#b5d958;background:#c8f060;color:#172236}
.r21-home-destination>span{display:flex;flex-direction:column;gap:6px;min-width:0}
.r21-home-destination strong{font-size:13px;font-weight:900;line-height:1.25}
.r21-home-destination small{font-size:9px;font-weight:600;line-height:1.45;color:#cbd3df}
.r21-home-destination.r21-analytics-entry small{color:#405226}
.r21-home-destination>b{flex:0 0 auto;font-size:17px;line-height:1;font-weight:750}
.r21-home-destination:focus-visible{outline:3px solid #718197;outline-offset:3px}

/* The gameweek's native option label carries the state; the old metadata row
   is removed by r21-ui.js, leaving one deliberate control-to-table gap. */
#app .r21-league-header{margin-bottom:0!important;padding-bottom:0!important}
#app .r21-league-header+.r13-league-list{margin-top:8px!important}

/* The match actions and result/fixture tile share one horizontal container. */
#app>.r21-match-detail-section{padding-top:0!important}
#app .r21-match-detail-section>.r18-matchup-profiles{
    box-sizing:border-box;
    width:100%;
    margin:0 0 8px!important;
    padding:0;
}
#app .r21-match-detail-section>.result-detail-card,
#app .r21-match-detail-section>.fixture-detail-card{box-sizing:border-box;width:100%;margin:0}

/* .rules-page already supplies the outer 16px gutter. */
#app .rules-page>.r13-team-draw-entry{box-sizing:border-box;width:100%;margin:0 0 12px}

/* One readable hierarchy throughout In-Depth Ownership Analysis. Earlier
   rules separately sized paragraphs, pills, notes and pairing labels. */
.v25-dialog.analysis .v25-analysis-details{font-size:11px;line-height:1.5}
.v25-dialog.analysis .v25-analysis-details>summary{padding:13px 14px}
.v25-dialog.analysis .v25-analysis-details>summary span{font-size:12px;line-height:1.4}
.v25-dialog.analysis .v25-analysis-details>summary b{font-size:9px;line-height:1.4}
.v25-dialog.analysis .v25-analysis-details section h3{margin:0 0 9px;font-size:12px;line-height:1.4;font-weight:850}
.v25-dialog.analysis .v25-analysis-details p{margin:9px 0 0;font-size:11px;line-height:1.5;color:#536277}
.v25-dialog.analysis .v25-analysis-details p b{font-size:inherit;color:#172236}
.v25-dialog.analysis .v25-analysis-details .v25-analysis-pills span{font-size:11px;line-height:1.5}
.v25-dialog.analysis .v25-analysis-details .v25-analysis-pills b{font-size:inherit;color:#172236}
.v25-dialog.analysis .v25-analysis-details .v25-analysis-note{
    margin:0;
    font-size:10px;
    line-height:1.5;
    font-weight:650;
    text-transform:none;
    letter-spacing:0;
}
.v25-dialog.analysis .v25-analysis-details .v25-pairing{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px}
.v25-dialog.analysis .v25-analysis-details .v25-pairing span{font-size:11px;line-height:1.5;font-weight:650}
.v25-dialog.analysis .v25-analysis-details .v25-pairing strong{max-width:130px;font-size:11px;line-height:1.5;font-weight:850;text-align:right;overflow-wrap:anywhere}
.v25-dialog.analysis .v25-analysis-details .v25-pairing small{font-size:10px;line-height:1.5;color:#65748a}

@media(max-width:430px){
    #app .r21-home-destinations .r21-home-destination{min-height:90px;padding:12px 10px;gap:6px}
    .r21-home-destination strong{font-size:12px}
    .r21-home-destination small{font-size:9px}
    .r21-home-destination>b{font-size:15px}
}

@media(max-width:359px){
    #app .r21-home-destinations .r21-home-destination{padding:11px 9px}
    #app .r21-league-header #leagueGameweek{font-size:11px!important;padding-left:10px!important}
    .v25-dialog.analysis .v25-analysis-details .v25-pairing{grid-template-columns:minmax(0,1fr)}
    .v25-dialog.analysis .v25-analysis-details .v25-pairing strong{grid-column:auto;grid-row:auto;max-width:none;text-align:left}
}
