/* Explicit state colours prevent dark text disappearing on the global hover background. */
#course-results .course-result{color:#173b30;background:#e9efdf;border:1px solid transparent;line-height:1.4;min-height:44px;padding:11px 13px;overflow-wrap:anywhere;text-align:left}
#course-results .course-result:hover,#course-results .course-result:focus,#course-results .course-result:active{color:#fff;background:#235342;-webkit-text-fill-color:#fff}
#course-results .course-result:focus-visible{outline:3px solid #ac6338;outline-offset:-3px}
#course-results{max-height:min(300px,38dvh);scroll-padding:5px;overscroll-behavior:contain}
.golf-keyboard-open.signed-in #journey-nav:not([hidden]){display:none!important}
.golf-keyboard-open{padding-bottom:16px}
.golf-keyboard-open #change-round-course{display:none}
#round-setup input,#round-setup select{min-width:0;max-width:100%}
.tee-picker-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;background:#fff;color:#173b30;border:1px solid #9fa99e;text-align:left;margin:6px 0 12px;padding:11px 13px;line-height:1.4}
.tee-picker-trigger>span:nth-last-child(2){flex:1;overflow-wrap:anywhere}.tee-picker-trigger:hover,.tee-picker-trigger:focus{background:#eef2e7;color:#173b30}
.tee-picker-trigger:disabled{opacity:1;color:#657268;background:#f5f6ef;cursor:default}
.tee-picker-chevron{margin-left:auto;font-size:22px}.tee-markers{display:inline-flex;gap:4px;align-items:center;flex-shrink:0}.tee-markers:empty{display:none}
.tee-marker{display:inline-block;width:18px;height:18px;border-radius:50%;background:var(--tee-colour);border:1px solid #647468;box-shadow:inset 0 1px 2px #ffffff55;flex-shrink:0}.tee-silver{background:linear-gradient(135deg,#edf1f2,#9daeb4)}.tee-gold{background:linear-gradient(135deg,#f4d778,#b98b24)}
.tee-picker{color:#173b30;background:#f5f6ee;border:1px solid #dce4d6;border-radius:20px;padding:18px;width:min(460px,calc(100% - 24px));max-height:85dvh;overflow:auto;overscroll-behavior:contain}
.tee-picker::backdrop{background:#102f2670}.tee-picker h2{font-size:23px;margin:0 0 14px}.tee-picker #tee-picker-close{float:right;margin:0 0 10px 10px;min-height:44px;padding:8px 12px}.tee-picker-options{clear:both;display:grid;gap:8px}
.tee-picker-option{display:flex;align-items:center;gap:10px;text-align:left;min-height:52px;width:100%;padding:12px;color:#173b30;background:#fff;border:1px solid #d9e1d1;line-height:1.4}
.tee-picker-option>span:nth-last-child(2){flex:1;overflow-wrap:anywhere}.tee-picker-option[aria-pressed=true]{background:#e2ecd7;border:2px solid #426b4b;padding:11px}.tee-picker-option:hover,.tee-picker-option:focus{background:#edf2e4;color:#173b30}.tee-picker-tick{font-size:21px;font-weight:bold;min-width:18px;color:#174e3d}
#round-course-details{padding:12px;margin:10px 0;background:#f3f4eb;border-radius:12px}
#round:has(#round-course-details[open]) #tee-status{display:none}
#round-course-details>summary{min-height:44px;line-height:1.4;padding:10px 0;font-size:14px}
.selected-course-summary{display:grid;gap:4px;padding:8px 0;line-height:1.4;overflow-wrap:anywhere;font-size:14px}.selected-course-summary strong{font-size:17px}.selected-course-summary p{margin:3px 0;color:#173b30;font-weight:600}.selected-tee-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#round-course-details .course-more{padding:0;margin:4px 0;border:0;background:transparent}#more-course-details>summary{padding:10px 0;min-height:44px;font-size:13px}
#round-course-details .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#round-course-details label{margin:4px 0;font-size:13px}#round-course-details input{font-size:16px;padding:10px;margin-top:5px;min-width:0}
#round-course-details p{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:6px 0}
.golf-keyboard-open #course-results{max-height:max(80px,min(300px,calc(var(--golf-visible-height,100dvh) - 130px)))}
@media(max-width:650px){.tee-picker{padding:14px}#round-course-details .grid{gap:8px}}

/* Course and tees are one compact group; searching happens in its own panel. */
#offline-status,#round-league-note,#tee-status{display:none!important}
.playing-selection{padding:12px;background:#f1f4e9;border:1px solid #dce4d6;border-radius:16px;margin:12px 0}
.playing-selection h3{font-size:17px;margin:0 0 8px;line-height:1.3}
.playing-selection-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
.playing-selection .tee-picker-trigger{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 9px;margin:0;background:#fafbf5;border:1px solid #bdcdb5;border-radius:12px;min-height:70px;padding:10px 12px}
.playing-selection .tee-picker-trigger:hover,.playing-selection .tee-picker-trigger:focus{background:#e6efdc;color:#173b30}
.selection-control-label{grid-column:1/-1;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#536c53}
.playing-selection .tee-picker-trigger>span:nth-last-child(2){grid-column:2;font-weight:600;min-width:0}
.playing-selection .tee-picker-trigger .tee-picker-chevron{grid-column:3;grid-row:2}
.playing-selection .tee-picker-trigger .tee-markers:empty+span{grid-column:1/3}
.course-flag{font-size:23px;color:#315d43;line-height:1}
.course-picker{position:fixed;left:0;right:0;top:calc(var(--course-panel-top,0px) + 12px);bottom:auto;margin:0 auto;width:min(600px,calc(100% - 24px));height:min(640px,calc(var(--course-panel-height,100dvh) - 24px));max-height:calc(var(--course-panel-height,100dvh) - 24px);padding:14px;border:1px solid #dce4d6;border-radius:20px;background:#f5f6ee;color:#173b30;overflow:hidden}
.course-picker[open]{display:flex;flex-direction:column;gap:8px}
.course-picker::backdrop{background:#102f2670}
.course-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0}
.course-picker-heading h2{font-size:22px;margin:0;line-height:1.2}.course-picker-heading button{padding:8px 12px;min-height:44px}
.course-picker>label{margin:0;font-size:13px;flex-shrink:0}.course-picker input{font-size:16px;min-width:0;margin-top:4px;padding:12px}
.course-picker-status{margin:0;font-size:13px;line-height:1.4;flex-shrink:0}.course-picker-status:empty{display:none}
.course-picker>#add-course-shortcut{flex-shrink:0;margin:0;font-size:13px;padding:8px 12px;min-height:44px}
.course-picker #course-results{flex:1;min-height:44px;max-height:none;overflow:auto;background:#fffdf8;border:1px solid #dce4d6}
.course-picker #course-results .course-result[aria-pressed=true]{color:#173b30;-webkit-text-fill-color:#173b30;background:#e2ecd7;border-color:#426b4b}
.course-picker #course-results .course-result[aria-pressed=true]::after{content:' ✓';font-weight:bold}
@media(min-width:750px){.playing-selection-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}

.course-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px}
.course-choice[hidden]{display:none}
.course-favourite{min-width:44px;min-height:44px}
.course-favourite[aria-pressed=true]{color:#704600}
