/* P137: final, shared map-label style. Loaded after legacy presentation rules. */
.leaflet-container.ow-map-readability-p137 :is(.ow-rl2-label,.ow-rv4e-label,.ow-live-standard-label-r2j,.leaflet-tooltip.tracker-label,.leaflet-tooltip.ow-tracker-map-label) {
  translate: var(--ow-label-shift-x,0px) var(--ow-label-shift-y,0px) !important;
  font: 600 var(--ow-detail-font,10px)/1.2 Arial,system-ui,sans-serif !important;
  padding: 1px 4px !important;
  width: max-content !important; height: auto !important;
  min-width: 0 !important; min-height: 0 !important; max-width: 112px !important;
  border-radius: 7px !important; border: 1px solid #64748b40 !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 2px #0f172a24 !important;
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
  transition: none !important;
}
.leaflet-container.ow-map-readability-p137 :is(.ow-rl2-label-text-v1b,.ow-rv4e-label-text-v1b,.ow-live-standard-label-r2j > span:last-child) {
  font: inherit !important; min-width: 0 !important; overflow: hidden; text-overflow: ellipsis;
}
/* The -color-dot-v1b class is on the WHOLE label; size its actual dot child only. */
.leaflet-container.ow-map-readability-p137 :is(.ow-rl2-label-dot-v1b,.ow-rv4e-label-dot-v1b,.ow-live-standard-label-r2j > span:first-child) {
  width: var(--ow-detail-dot,6px) !important; height: var(--ow-detail-dot,6px) !important;
  min-width: var(--ow-detail-dot,6px) !important; min-height: var(--ow-detail-dot,6px) !important;
  flex: 0 0 var(--ow-detail-dot,6px) !important; margin-right: 3px !important;
  box-shadow: none !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137 {
  position: absolute !important;
  left: var(--ow-course-anchor-x,50%) !important; top: var(--ow-course-anchor-y,50%) !important;
  transform: translate(-50%,-50%) scale(var(--ow-detail-course,.8)) !important;
  transform-origin: 50% 50% !important;
  box-shadow: 0 1px 2px #0f172a26 !important;
  box-sizing: border-box !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137:is(.committee-endpoint,.race-signal-endpoint) {
  transform: translate(-50%,-50%) scale(var(--ow-detail-endpoint,.67)) !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.committee-endpoint {
  width: 64px !important; min-width: 64px !important; grid-template-columns: 36px 16px !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.race-signal-endpoint {
  width: 48px !important; min-width: 48px !important; grid-template-columns: 20px 16px !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137:is(.committee-endpoint,.race-signal-endpoint) > span {
  font-size: 14px !important; line-height: 1 !important; font-weight: 700 !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.committee-start-endpoint {
  width: 118px !important; min-width: 118px !important; height: 74px !important; min-height: 74px !important;
  grid-template-columns: 100px 12px !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.committee-finish-endpoint {
  width: 72px !important; min-width: 72px !important; height: 42px !important; min-height: 42px !important;
  grid-template-columns: 55px 12px !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.committee-start-endpoint .ow-course-committee-signal-svg {
  width: 100px !important; height: 64px !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.committee-finish-endpoint .ow-course-committee-signal-svg {
  width: 55px !important; height: 34px !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137 .ow-race-signal-staff-svg {width: 20px !important;height: 24px !important;}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137:is(.mark,.gate):not(.line-label) {
  width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important;
  display: grid !important; place-items: center; padding: 0 !important;
  font: 700 10px/1 Arial,sans-serif !important; border-width: 1.5px !important;
  border-radius: 7px !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.mark {border-radius: 50% !important;}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137:is(.line-label,.prestart-label) {
  min-height: 0 !important; min-width: 0 !important; width: max-content !important; height: auto !important;
  font: 600 10px/1.2 Arial,sans-serif !important; padding: 2px 5px !important; border-width: 1px !important;
  opacity: .72 !important;
}
.ow-label-leaders-p137 {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden;
  z-index: 610; pointer-events: none !important;
}
.ow-label-leaders-p137 line {stroke: #475569;stroke-opacity: .38;stroke-width: .75;pointer-events: none !important;}
.leaflet-zoom-anim .ow-label-leaders-p137 {visibility: hidden;}

/* P143.1: readability scaling must not restore the committee card. */
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.committee-endpoint {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.leaflet-container.ow-map-readability-p137 .ow-course-readability-p137.committee-endpoint > span {
  display: none !important;
}
