/* Depth layer (spec 012) — tap-result depth line, Units rows. The on/off
   switch lives in the Map layers panel (map-tools.css, spec 014). */

/* ── Tap result: "Depth: 0–50 m" ────────────────────────────────────────── */
.panel-depth {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  unicode-bidi: plaintext;
}

/* ── Units rows (language dropdown + user menu) ─────────────────────────── */
.lang-menu__units {
  border-top: 1px solid var(--color-ink-subtle);
  margin-top: var(--space-1);
  padding-top: var(--space-1);
}
.units-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-base);
}
.units-row--user {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-ink-subtle);
  border-bottom: 1px solid var(--color-ink-subtle);
  margin: var(--space-1) 0;
}
.units-row__options {
  display: inline-flex;
  border: 1px solid var(--color-ink-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.units-row__btn {
  padding: 2px var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  background: transparent;
  cursor: pointer;
}
.units-row__btn.is-active {
  background: var(--color-primary-soft);
  color: var(--color-ink-strong);
  font-weight: 600;
}
.units-row__note {
  flex-basis: 100%;
  max-width: 220px;
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--color-ink-muted);
  white-space: normal;
}

/* ── "Share usage statistics" rows (spec 018) — same menus as Units ─────── */
.usage-row {
  cursor: pointer;
  flex-wrap: wrap;
}
.usage-row .units-row__label {
  flex: 1 1 0;
  min-width: 0;
}
.units-row--user.usage-row {
  border-top: none;
  margin-top: 0;
}
/* The language list + Units + usage rows can outgrow short screens. */
.lang-menu {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
