/* Reedy's Chart label styling — elite nautical cartography pass (v61).

   Depth labels follow NOAA / AHO chart conventions:
   - italic weight 500 for sounded depths
   - dark navy ink (same family as major contours) with a crisp thin white halo
   - tabular numerals so same-depth labels align vertically on screen
*/
.leaflet-tooltip.reedys-depth-lbl {
  background: transparent; border: 0; box-shadow: none;
  color: #0a1e40;
  font-family: "Helvetica Neue", "Inter", system-ui, -apple-system, "SF Pro Text", Segoe UI, Roboto, sans-serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  padding: 0; white-space: nowrap;
  /* Thin crisp 8-direction halo at 1.2 px — fine, not blobby. */
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.92),
     1px -1px 0 rgba(255,255,255,0.92),
    -1px  1px 0 rgba(255,255,255,0.92),
     1px  1px 0 rgba(255,255,255,0.92),
     0   -1px 0 rgba(255,255,255,0.92),
     0    1px 0 rgba(255,255,255,0.92),
    -1px  0   0 rgba(255,255,255,0.92),
     1px  0   0 rgba(255,255,255,0.92);
}
/* Zoom-tier sizes applied via a class on .leaflet-map-pane ancestor:
   .reedys-z-low (z<=10) 10px, .reedys-z-mid (z11) 11px, .reedys-z-hi (z>=12) 12px. */
.reedys-z-low .leaflet-tooltip.reedys-depth-lbl  { font-size: 10px; }
.reedys-z-mid .leaflet-tooltip.reedys-depth-lbl  { font-size: 11px; }
.reedys-z-hi  .leaflet-tooltip.reedys-depth-lbl  { font-size: 12px; }

/* Deep (BS 150 m+) labels: white ink with dark halo so they pop on dark navy bands. */
.leaflet-tooltip.reedys-depth-lbl.deep {
  color: #f7fbff;
  text-shadow:
    -1px -1px 0 rgba(10,20,40,0.92),
     1px -1px 0 rgba(10,20,40,0.92),
    -1px  1px 0 rgba(10,20,40,0.92),
     1px  1px 0 rgba(10,20,40,0.92),
     0   -1px 0 rgba(10,20,40,0.92),
     0    1px 0 rgba(10,20,40,0.92),
    -1px  0   0 rgba(10,20,40,0.92),
     1px  0   0 rgba(10,20,40,0.92);
}

/* Majors: +1px size, unchanged italic/weight. */
.leaflet-tooltip.reedys-depth-lbl.major { font-size: 12px; }
.reedys-z-low .leaflet-tooltip.reedys-depth-lbl.major { font-size: 11px; }
.reedys-z-mid .leaflet-tooltip.reedys-depth-lbl.major { font-size: 12px; }
.reedys-z-hi  .leaflet-tooltip.reedys-depth-lbl.major { font-size: 13px; }
.leaflet-tooltip.reedys-depth-lbl:before { display: none; }

/* v63.5: Index-contour chip label. Rendered only at z >= 13 for index depths
   (PP 5/10/15/20 m, BS 50/100/200/500 m). A small pill with a white halo box
   around the numeric text so the index ladder is unmistakable over a
   hillshaded relief background. Still italic, still tabular, just boxed. */
.leaflet-tooltip.reedys-depth-lbl.chip {
  background: rgba(255, 255, 255, 0.88);
  border: 0.6px solid rgba(29, 51, 86, 0.55);
  border-radius: 3px;
  padding: 1px 4px;
  /* A chip has its own halo ring — drop the glow text-shadow so the number
     stays crisp against the solid pill. */
  text-shadow: none;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.55);
  color: #0a1e40;
  font-style: italic;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
/* Chips inherit the zoom-tier sizes but nudge up 1 px so the box reads. */
.reedys-z-hi .leaflet-tooltip.reedys-depth-lbl.chip { font-size: 12px; }
/* Deep chip (BS 150/200 m +): dark pill, white ink. */
.leaflet-tooltip.reedys-depth-lbl.chip.deep {
  background: rgba(10, 20, 40, 0.82);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f7fbff;
  text-shadow: none;
}

/* Place labels unchanged from pass 2. */
.leaflet-tooltip.reedys-place-lbl {
  background: transparent; border: 0; box-shadow: none;
  color: #e8e4d7;
  font: 700 10px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0; white-space: nowrap;
  text-shadow: 0 0 3px rgba(10,16,22,0.95), 0 0 6px rgba(10,16,22,0.7),
               0 1px 2px rgba(10,16,22,0.9);
}
.leaflet-tooltip.reedys-place-lbl:before { display: none; }
.leaflet-tooltip.reedys-place-lbl.big   { font-size: 14px; letter-spacing: 0.12em; }
.leaflet-tooltip.reedys-place-lbl.small { font-size:  9px; }
.leaflet-tooltip.reedys-place-lbl.tiny  { font-size:  8px; color: #bfb99f; letter-spacing: 0.04em; }
