/* C: slim, equal-width score strip. Names wrap rather than becoming tiny. */
.stableford-running-top{margin:0 0 10px;padding:6px 0;scroll-margin-top:76px;color:#10243a}
.stableford-running-top h2{font-size:16px!important;line-height:1.2;margin:0 0 7px!important;color:#10243a!important;font-weight:800}
.stableford-running-tiles,.stableford-running-top .running-score-grid{display:grid!important;grid-template-columns:repeat(var(--score-count,4),minmax(0,1fr))!important;gap:5px;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.stableford-running-tiles:has(>.stableford-running-tile:not(.stableford-running-group):nth-child(3):last-child){--score-count:3}
.stableford-running-tiles:has(>.stableford-running-tile:nth-child(2):last-child){--score-count:2}
.stableford-running-tiles:has(>.stableford-running-tile:only-child){--score-count:1}
.stableford-running-tile,.stableford-running-top .running-score-total{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;padding:10px 4px!important;border:0!important;border-radius:12px!important;background:#e6f4ff;color:#10243a!important;text-align:center}
.stableford-running-top :is(span,strong,small){color:#10243a!important;font-weight:800!important;opacity:1!important;overflow-wrap:anywhere}
.stableford-running-top :is(.stableford-running-tile>span,.running-score-name){font-size:14px!important;line-height:1.25!important}
.stableford-running-top :is(.stableford-running-tile>strong,.running-score-total>strong){font-size:26px!important;line-height:1.15!important}
.stableford-running-tile>strong>strong{font-size:inherit}
.stableford-running-tile:has(strong br)>strong{font-size:17px!important;line-height:1.5!important}
.stableford-running-top small{font-size:11px!important;line-height:1.25}
.stableford-running-tile small:empty{display:none}
.stableford-running-top :is(.player-colour-1,.running-score-1){background:#faeafb!important}
.stableford-running-top :is(.player-colour-2,.running-score-2){background:#fff0df!important}
.stableford-running-top :is(.player-colour-3,.running-score-3){background:#e3f7f7!important}
.stableford-running-top :is(.stableford-running-group,.running-score-group){grid-column:1/-1;background:#eff7f3!important;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px}
.stableford-running-group>strong{font-size:20px!important}

.stableford-running-tile{align-self:stretch!important;height:100%;box-sizing:border-box}
.stableford-running-tile>span:first-child{min-height:2.5em;display:flex;align-items:center;justify-content:center}
.stableford-running-top .stroke-running-tile>strong{display:flex;flex-direction:column;gap:7px;width:100%}
.stableford-running-top .running-metric{display:flex;flex-direction:column;align-items:center;gap:1px}
.stableford-running-top .running-metric small{font-size:12px!important;line-height:1.2!important}
.stableford-running-top .running-metric strong{font-size:25px!important;line-height:1.1!important;white-space:nowrap}
.stableford-running-top .stroke-running-tile>small{font-size:10px!important}

.stableford-running-top .running-score-total.stroke-running-tile>strong{display:flex;flex-direction:column;gap:7px;width:100%}
.stableford-running-top .running-score-name{min-height:2.5em;display:flex;align-items:center;justify-content:center}
/* Team points use the same light strip; the navy matchplay banner stays intact. */
:is(#match-status,#final-status):has(.stableford-running-top){background:transparent!important;color:#10243a!important;padding:0!important;box-shadow:none!important}

body.readable-scoring :is(.gross-box,.point-result,.net-box,.score-boxes) span{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
@media(min-width:361px) and (max-width:520px){body.readable-scoring .point-result>span{font-size:11px!important;line-height:1.2!important}}

/* Rules Help remains a primary scoring tool alongside the timer. */
body.readable-scoring .scoring-rules-dock button.rules-help-float:not([hidden]){display:flex!important;flex:0 0 auto;min-height:44px!important}
